Accurate Timer 1/1000 second

  • Thread starter Thread starter Pete
  • Start date Start date
P

Pete

I've been messing around with the timer class, datetime.ticks, etc and
haven't been able to come up with a real accurate time measurement, say for
a simple stopwatch application. Can anyone point me in the right direction
as to how to create an accurate time measurement object in c#?

Thanks,
 
Paul said:
You can use GetTickCount() before you start whatever you're timing and after
it. The difference is the time in ms. It should be easy to P/Invoke
this...

Use Environment.TickCount and you won't need to use P/Invoke (though I
would guess under the sheets it's the exact same thing)

--

..o0O0o.__.o0O0o.__.o0O0o.__.o0O0o.__.o0O0o.__.o0O0o.__.o0O0o.
| Matt Kunze Sometimes there's a point.|
| Build Master Fooly Fool This is not one of those |
| 970.484.0841 x 2205 times. |
=============================================================
 
Back
Top