
24 Jan
2007
24 Jan
'07
12:10 a.m.
John Meacham wrote:
I would think this would be how the haskell 98 standard library CPUTime is implemented, is it not?
No. System.CPUTime gives you an approximate idea of the amount of CPU time your process, and all its threads, have used. The rdtsc instruction gives you a snapshot of the current CPU's cycle counter, regardless of who (if anyone) has been burning those cycles.