Related to earlier question: making mistake in inline assembler in gcc
in the RDTSC or similar instruction, is the count only for your process, or is it a global count? If there is a context switch, is the only inaccuracy the cost of the context switch itself, or is the entire time the CPU is on a different job counted?