[LEAPSECS] Lets get REAL about time.
Warner Losh
imp at bsdimp.com
Fri Jan 20 20:43:26 EST 2012
On Jan 20, 2012, at 9:29 AM, mike cook wrote:
>> Modern CPUs clock around 4GHz, multiplying by 1000 for resulution we
>> find that we need 42 bits after the binary point.
>
> Solaris already has 64 bit quantities for time operations. From their doc:
>
> "time_t, and its derivative types struct timeval and timespec_t now contain 64-bit quantities"
>
> Aren't you reinventing the wheel? Its open source, so just borrow it.
typedef int64_t time_t;
That's 64-bits for the seconds portion of things. There's not a similar partial seconds.
Warner
More information about the LEAPSECS
mailing list