On Thu, 24 May 2001 18:30:32 +0100
Anthony Harrington <Anthony.Harrington at cs.tcd.ie> wrote:
|Hello,
|Can anyone tell me a system call for measuring time in nano-seconds ?
|All I can find is gettimeofday() from which I can only obtain seconds
|and milliseconds.
|Any info. appreciated.
|Anthony
|Problem is here that you're not using a Real Time operating system. The best timer
resolution you're going to see is in the order of 10 milliseconds. There's kernel
latency patches out there and of course RTLinux. QNX is free for (personal non-
commercial?) use?. Those might be worth a try if this app you are writing is the critical
app running on the system.
Colin Fowler
P.S. out of interest what are you doing that requires such fine grained timing?!
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!