From owner-freebsd-questions Sun Oct 25 16:43:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA04848 for freebsd-questions-outgoing; Sun, 25 Oct 1998 16:43:37 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA04835 for ; Sun, 25 Oct 1998 16:43:33 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id LAA07649; Mon, 26 Oct 1998 11:11:44 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id LAA19739; Mon, 26 Oct 1998 11:11:22 +1030 (CST) Message-ID: <19981026111122.B16609@freebie.lemis.com> Date: Mon, 26 Oct 1998 11:11:22 +1030 From: Greg Lehey To: Shafia Kausar , FreeBSD Questions Subject: Re: Timer granularity References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: ; from Shafia Kausar on Sun, Oct 25, 1998 at 11:47:45AM -0600 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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