Accurate Timer 1/1000 second

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,
 
M

Matt Kunze

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. |
=============================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top