[haiku-development] Re: [PATCH] Add microsecond resolution to BTime

  • From: julun <host.haiku@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 10 Oct 2008 09:32:47 +0200

Hi,

Rene Gollent schrieb:
On Thu, Oct 9, 2008 at 5:55 PM, julun <host.haiku@xxxxxx> wrote:
I had re-based the BTime class to only have a fMilliseconds member, so that
i could easily add some functions like AddHours(...), AddMinutes(...) etc.
Now i need to hold and maintain an additional member, since even a bigtime_t
is not big enough to hold the microseconds per day.

How so? 1 day = 86,400,000,000 usec.
bigtime_t max value = 18,446,744,073,709,551,616 or ~213 million days.


How so, don't append 'LL' to your constant and trust the compiler output... :)


Karsten

Other related posts: