Change default VFS timestamp precision?

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Dec 18 20:14:05 UTC 2014


--------
In message <77322.1418933100 at critter.freebsd.dk>, "Poul-Henning Kamp" writes:

>>I don't understand
>>why you think TSP_USEC is slower than TSP_NSEC.  microtime() and nanotime()
>>both just call bintime() and then convert the result using similar math.
>
>Because of the pointless nano->micro conversion which makes TSP_USEC
>take a division longer to deliver a less precise result than TSP_NSEC.

Actually, that's the other way around: it converts microseconds to
nanoseconds with a pointless multiplication.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the freebsd-arch mailing list