Hi all,
I am about to start doing some performance testing on a software
Message-ID: <003701c0641f$6642ee00$070210ac@horsell.ibgames.com>
From: "Alan Lenton"
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);
------ snip -----