P
Peter
Hi
I am using a "Timing" class which performs timing measurements - and
returns "tick" values to me.
The tick values are however wildly different from DateTime.Now.Ticks,
and I have found out that this is due to the fact that the class is
using a high resolution windows' timer (QueryPerformanceCounter) behind
the scenes - accessible from c# by importing kernel.dll.
Is there any way of comparing the tick values (in a meaningful way)
from DateTime.Now.Ticks and QueryPerformanceCounter? Or do I also need
to use QueryPerformanceCounter in my code if I wish to make a
comparison with the values I receive from the Timing class?
Thanks,
Peter
I am using a "Timing" class which performs timing measurements - and
returns "tick" values to me.
The tick values are however wildly different from DateTime.Now.Ticks,
and I have found out that this is due to the fact that the class is
using a high resolution windows' timer (QueryPerformanceCounter) behind
the scenes - accessible from c# by importing kernel.dll.
Is there any way of comparing the tick values (in a meaningful way)
from DateTime.Now.Ticks and QueryPerformanceCounter? Or do I also need
to use QueryPerformanceCounter in my code if I wish to make a
comparison with the values I receive from the Timing class?
Thanks,
Peter