G
Guest
I used the QueryPerformanceCounter and QueryPerformanceFrequency methods in
my VC++ 6.0 projects to measure correct time spans, for example for timeouts,
how much time takes to execute certain method etc
I wonder whether there is something similar in .NET to measure time spans?
Meantime I still use these methods through DllImport
[DllImport("Kernel32.dll")]
private static extern bool QueryPerformanceFrequency(out long lpFrequency);
I suspect there is better approach then using DllImport. Can anyone suggest
something better?
Thanks
my VC++ 6.0 projects to measure correct time spans, for example for timeouts,
how much time takes to execute certain method etc
I wonder whether there is something similar in .NET to measure time spans?
Meantime I still use these methods through DllImport
[DllImport("Kernel32.dll")]
private static extern bool QueryPerformanceFrequency(out long lpFrequency);
I suspect there is better approach then using DllImport. Can anyone suggest
something better?
Thanks