LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
From: David Newall <davidn@rebel.net.au>
To : Evan Bourlotos <evan@cs.adelaide.edu.au>
Date: Mon, 5 Jun 2000 12:51:22 +0930 (CST)
Re: High resolution C timer
Evan Bourlotos <evan@cs.adelaide.edu.au> wrote:
> Does anyone know of a high resolution timer available in GCC?, time and
> clock are not good enough for my needs.
Did you mean timer or time? Using "man -k timer" yields "setitimer(2) -
set value of an interval timer." It apparently provides microsecond
timers, but read the caveats carefully. If you meant time look at ftime(3)
or getrusage(2). As is often the case, these answers were readily found in
the manual.
Remember that Linux is not a real real-time operating system, and if you
might not enjoy great repeatability at millisecond resolution.
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
Return to the LinuxSA Mailing List Information Page