HighPerformanceCounter rounding
nobody_
spam at spam.spam
Wed Oct 25 05:47:49 PDT 2006
foo being some random function
foo took: 14896947 microseconds
foo took: 14896 milliseconds
foo took: 14 seconds
Simple rounding :)
How accurate are these readings on a windows XP machine?
They seem pretty accurate (except for the simple rounding).
I tested the following
c.start();
std.c.time.usleep(1000001);
c.stop();
usleep took: 999789
usleep took: 999
usleep took: 0
It isn't a big difference, but still... :)
More information about the Digitalmars-d-learn
mailing list