Pentium exec time

  • Follow


When measuring execution time with
real time like clock() also interrupting
background processes are measured,
and the result is always too large
and variable.
How can the clean execution time without
interrupting background processes be
measured on a Pentium 4?


0
Reply Maarten 5/11/2005 7:45:09 PM

Maarten Kronenburg wrote:
> When measuring execution time with
> real time like clock() also interrupting
> background processes are measured,
> and the result is always too large
> and variable.
> How can the clean execution time without
> interrupting background processes be
> measured on a Pentium 4?

Take a look at the RDTSC instruction. However for long instruction
sequences, you're out of luck unless you can convince the OS to let you
turn off the interrupts.
Cheers,
Randy Hyde

0
Reply randyhyde 5/11/2005 8:48:55 PM


1 Replies
108 Views

(page loaded in 0.061 seconds)

Similiar Articles:




7/28/2012 8:19:42 AM


Reply: