
On Mon, 26 Jul 2004 11:43:55 +1000, Matt Hurd wrote
On Sat, 24 Jul 2004 11:24:39 +0100, John Maddock <john@johnmaddock.co.uk> wrote:
Just out of interest, what is the problem that prevents the date-time library from implementing a microsecond clock using GetSystemTimeAsFileTime on Win32?
Thanks,
John.
The resolution supplied by GetSystemTimeAsFileTime may not be what you think. I get 10 milliseconds resolution out of my machine from the following code.
Yes, this is a problem -- but at least it is subsecond resolution which is better than the second level resolution of the other clock type. So 'high resolution clock' probably would be a better name with caveats by platform. BTW, part of the test is to ensure that the clock values monotonically increase with repeated sampling... Jeff