Date: Mon, 26 Oct 1998 11:11:22 +1030 From: Greg Lehey <grog@lemis.com> To: Shafia Kausar <s0k9955@unix.tamu.edu>, FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: Timer granularity Message-ID: <19981026111122.B16609@freebie.lemis.com> In-Reply-To: <Pine.SOL.3.96.981025112610.1374E-100000@fox.tamu.edu>; from Shafia Kausar on Sun, Oct 25, 1998 at 11:47:45AM -0600 References: <Pine.SOL.3.96.981025112610.1374E-100000@fox.tamu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday, 25 October 1998 at 11:47:45 -0600, Shafia Kausar wrote: > Hi All, > I have just started using FreeBSD. I am looking out for the kernel timer > resolution. Any info or pointers are welcome. Take a look at /sys/kern/kern_clock.c. To quote the comment at line 502 of the 3.0-RELEASE version, /* * We have four functions for looking at the clock, two for microseconds * and two for nanoseconds. For each there is fast but less precise * version "get{nano|micro}time" which will return a time which is up * to 1/HZ previous to the call, whereas the raw version "{nano|micro}time" * will return a timestamp which is as precise as possible. */ > P.S: I am sorry if this is a FAQ. Please give me the pointer if it > is one. It's definitely not a FAQ, but if you're messing around in the kernel, you might consider joining the FreeBSD-hackers mailing list, which is more in keeping with this kind of question. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981026111122.B16609>