<html>
<head>
</head>
<body bgcolor="#FFFFFF" text="#000000">
The function ccl<big>::rdtsc can be used for counting cpu cycles,
but it returns results depending on the current cpu the program is
running on, which can be a problem for multithreaded applications.</big><br>
<br>
<big>Is there a way to get consistent values from the same cpu, so
that one can measure how many cpu cycles a given function took to
execute?</big><br>
<br>
<big>Alternatively, if this is not possible, would it be possible
(and sensible) to restrict a process to only a single cpu, to
avoid this problem?</big><br>
</body>
</html>