clock time in milliseconds into a c program

Joseph Koshy joseph.koshy at gmail.com
Thu Jan 20 18:19:17 PST 2005


> I don't think there is a streight way to speed-up the default 
> unix time resolution, which is, as far as i know, in 
> microseconds.

On i386 (and possibly amd64) platforms you can use the
RDTSC instruction to get a direct measure of processor
cycles elapsed.

-- 
FreeBSD Volunteer, http://people.freebsd.org/~jkoshy


More information about the freebsd-hackers mailing list