Date: Wed, 14 Jul 1999 12:59:13 -0700 From: "Ronald F. Guilmette" <rfg@monkeys.com> To: questions@freebsd.org Subject: System clock frequency? Message-ID: <7739.931982353@monkeys.com>
next in thread | raw e-mail | index | archive | help
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 <sys/time.h> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7739.931982353>