Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Dec 2014 20:14:02 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Cc:        "freebsd-arch@freebsd.org" <arch@freebsd.org>, Adrian Chadd <adrian@freebsd.org>, Jilles Tjoelker <jilles@stack.nl>
Subject:   Re: Change default VFS timestamp precision?
Message-ID:  <77371.1418933642@critter.freebsd.dk>
In-Reply-To: <77322.1418933100@critter.freebsd.dk>
References:  <201412161348.41219.jhb@freebsd.org> <CAJ-Vmokkc-p4-keMExxT%2BwyjugA8zYRS2XRv6VucWnfH0iw_Pw@mail.gmail.com> <70449.1418843354@critter.freebsd.dk> <201412181436.31701.jhb@freebsd.org> <77322.1418933100@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
--------
In message <77322.1418933100@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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?77371.1418933642>