Hi!
I want to measure a very small period of time ( let's say 0.2 ms).
In order to do this, I'm using busy loop which checks whether or not we waited in the busy loop for the requested time like this:
double startTime = MeasureTime();
double endTime = MeasureTime();
while (endTime - startTime < timeToWait)
{
endTime = MeasureTime();
}
I'd like to use some functions which don't use much CPU in that loop in order to ease the CPU load.
which functions should I use?
thanks :)