View Single Post
Ambitious contributor
22Jan2008,16:44  
Salem's Avatar
Well the standard clock() function (see stdlib.h) can tell you to about 1 second accuracy how much CPU time has elapsed between two points in the code.

But if you want higher precision timers, you need to tell us which OS/Compiler you're using.