jacob navia schrieb:
One method would be:
1) Count the number of instructions in your loop by getting
an assembly listing from the C compiler.
This is with high likelyhood not the actual number of executed
instructions, as on any modern operating system the sleeping process
will be preempted and instructions will be executed by the
scheduler/operating system/other tasks.
It would be the correct count if the process had exclusive access to the
CPU.
In any case, the problem is poorly specified.
Greetings,
Johannes
--
"PS: Ein Realname wäre nett. Ich selbst nutze nur keinen, weil mich die
meisten hier bereits mit Namen kennen." -- Markus Gronotte aka "Makus"
aka "Kosst Amojan" aka "maqqusz" in de.sci.electronics
<45**********************@newsspool3.arcor-online.net>