Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Apr 2002 19:14:57 +0200
From:      Poul-Henning Kamp <phk@freebsd.org>
To:        arch@freebsd.org
Subject:   get{bin,micro,nano}[up]time() - what precision ?
Message-ID:  <54342.1018890897@critter.freebsd.dk>

next in thread | raw e-mail | index | archive | help

I'm soliciting input from users of the get*time() family of functions
in the kernel on what the minimal desirable precision is.

Currently they return a timestamp which is no more than 1/HZ out
of date.  For contemporary values of HZ, that seems to be adequate.

As people increase HZ to above 10000, it starts to cost more to
update timecounters every tick, and the question naturally arises:
what is the target resolution for get*time() functions ?

Would anybody get in trouble if the precision never got better
than 10msec, even for higher HZ ?

If so, would 1msec be an acceptable limit ?

-- 
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.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




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