[ILUG-BOM] How to determine "clock cycle" usage

Rahul Saxena rahul.saxena@[EMAIL-PROTECTED]
Sat Nov 16 00:49:19 IST 2002

Hi there, 

How do i find out how many clock cycles ( basically how much time,  in 
seconds the processor is actually spending on a piece of code ) the processor 
is using. 

i have used clock() at a few place both in linux and dos, how does i change 
this to true time.. in seconds. 

Normally CLOCK_TICKS_CONSTANT or somthing is fixed to 1e6. how is this 
related to the processor clock speed

Whats the significance. 

Pls tell me if there are any documentation on all this, besides the man pages.



More information about the Linuxers mailing list