I seem to be having trouble displaying my Stopwatch
like this: 00:00:00:000
I want all three Milliseconds to be displayed.
I can make it look like that, but they don't count
like they should :confused:
Posted on 2003-04-21 10:19:16 by The SharK
is it even possible to be this precise on a Windows OS? :confused:
Posted on 2003-04-21 10:27:40 by Hiroshimator
Hi Hiroshimator

Yeah, I think that windows is that precise;)
Posted on 2003-04-21 10:45:09 by The SharK

Yeah, I think that windows is that precise;)


You'd better search on WM_TIMER. As Hiroshimator mentioned, the resolution of WM_TIMER msg is not 1 milisec. Depending on whether you are on Win9x or WinNT, the resolution varies, with maximum of more than 50 milisec.

If you really want milisec resolution, dump WM_TIMER handling and create your own timer.
Posted on 2003-04-21 13:41:31 by Starless
But first ask yourself if you really need that much precision.
Posted on 2003-04-21 13:48:22 by iblis
Yeah, your right iblis.

Btw. I've seen such an accurate clock on Iczelions site
which uses the FPU to make some nice calculations :)


But first "ask yourself" if you really need that much precision.


It remainded me of a Clint Eastwood film in which he said:

"you're probably wondering - did he fire six shots, or only five - and now
you gotta ask yourself - do I feel lucky - well do you punk".

It was the "ask yourself", which directed me to this line.
A good movie though:tongue:
Posted on 2003-04-21 17:05:59 by The SharK
When I need a timer, I normally use the GetTickCount function which returns an integer result in milliseconds. And you don't need the FPU to convert it in hr:mn:sec.xxx.

Raymond
Posted on 2003-04-21 22:35:10 by Raymond