
9 Jan
2009
9 Jan
'09
8:44 a.m.
Mauricio ha scritto:
benchpress also uses System.CPUTime -- is that what you are looking for?
I'm writing a program that will read medical signs from many patients. It's important to have a precise measure of the time interval between some signs, and that can't depend on adjustments of time. (Supose my software is running midnight at the end of a year with leap seconds. I would get wrong time intervals.)
What precision do you need? On a recent POSIX platform you can use the real time clock: http://linux.die.net/man/2/clock_gettime http://www.opengroup.org/onlinepubs/009695399/functions/clock_getres.html CLOCK_MONOTONIC is what you need.
[...]
Regards Manlio Perillo