From owner-freebsd-questions Wed Jul 14 13:49:35 1999 Delivered-To: freebsd-questions@freebsd.org Received: from monkeys.com (i180.value.net [206.14.136.180]) by hub.freebsd.org (Postfix) with ESMTP id CBFAE15451 for ; Wed, 14 Jul 1999 13:49:31 -0700 (PDT) (envelope-from rfg@monkeys.com) Received: from monkeys.com (localhost [127.0.0.1]) by monkeys.com (8.9.3/8.9.3) with ESMTP id MAA07741 for ; Wed, 14 Jul 1999 12:59:13 -0700 To: questions@freebsd.org Subject: System clock frequency? From: "Ronald F. Guilmette" Date: Wed, 14 Jul 1999 12:59:13 -0700 Message-ID: <7739.931982353@monkeys.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The man page for gettimeofday(2) sez: The resolution of the system clock is hardware dependent, and the time may be updated continuously or in ``ticks.'' OK, so let's just say that I actually need to know the resolution of the time information provided by gettimeofday(2), say for example on a plain old x86 type system. What is this resolution, actually? P.S. I tried to answer this question for myself, but came up against a wall. In the file, I see: /* * Getkerninfo clock information structure */ struct clockinfo { int hz; /* clock frequency */ int tick; /* micro-seconds per hz tick */ int stathz; /* statistics clock frequency */ int profhz; /* profiling clock frequency */ }; But "man getkerninfo" produced nothing. Anyway, I'm not even sure how the "hz" field of the above structure would relate to the values provided by gettimeofday(2). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message