From: Jesse Marlin
Hi all,
I am about to start doing some performance testing on a software project that I am involved with. I would like to use my version of SuSE Linux 7.0 Professional as one of the test platforms.
How can I get Linux to provide microsecond granularity when I make calls to the system clock? In otherwords, I need a microsecond clock on Linux to get accurate performance measurements of my software?
You can use select, like so: struct timeval tv; tv.tv_sec = 0; tv.tv_usec = 1000; /* Sleep for a while */ select (0, NULL, NULL, NULL, &tv); <p> >
I have seen some information about this subject on the Net, but it seems to be focused on earlier versions of the Linux kernel.
On my machine, unama -a returns : Linux eclipse 2.2.16 #1 Wed Aug 2 20:22:26 GMT 2000 i686 unknown This is a uniprocessor machine, Intel Pentium III 450
Could you explain what I must do (and how) to achieve this functionality? Or does SuSE 7.0 already support the microsecond clock as standard?
Many thanks in advance for your kind help
regards Garry
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq