L
Logan McKinley
I am trying to create a high precision timer using the
QueryPerformanceCounter API call which works find but I want to implement a
tick event and am not sure how best to proceed.
Say the user wanted the tick event every 500 ms, the only way I can think of
to perform that is constantly querying QueryPerformanceCounter until 500 ms
has passed then raise the event but that will use 100% of the processor,
which I don't want to do. Is there any way to implement this timer without
using 100% of the processor or is there a different way to go about this I
have not thought of?
Thanks in Advance,
~Logan
QueryPerformanceCounter API call which works find but I want to implement a
tick event and am not sure how best to proceed.
Say the user wanted the tick event every 500 ms, the only way I can think of
to perform that is constantly querying QueryPerformanceCounter until 500 ms
has passed then raise the event but that will use 100% of the processor,
which I don't want to do. Is there any way to implement this timer without
using 100% of the processor or is there a different way to go about this I
have not thought of?
Thanks in Advance,
~Logan