Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Dec 2000 16:23:46 -0800
From:      "Jonathan Graehl" <jonathan@graehl.org>
To:        <freebsd-hackers@freebsd.org>
Subject:   most efficient/precise monotonic clock for I686_CPU?
Message-ID:  <NCBBLOALCKKINBNNEDDLOEKCDHAA.jonathan@graehl.org>

next in thread | raw e-mail | index | archive | help
What is the most efficient way to get a relatively precise (say, at
least millisecond) time value that is guaranteed to inrease
monotonically (even if, say, xntpd adjust the system clock), either
portable, or FreeBSD-specific?  Is there some user library for using the
Pentium performance clock thingy?

I have, of course, looked at gettimeofday(2).  Is this what I should be
using?  Does it involve a system call?

-Jon



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




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