[Haskell-cafe] Announce: Package rdtsc for reading IA-32 time stamp counters

Bryan O'Sullivan bos at serpentine.com
Tue Jan 23 19:10:10 EST 2007


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.

	<b


More information about the Haskell-Cafe mailing list