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:
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:
is it even possible to be this precise on a Windows OS? :confused:
Hi Hiroshimator
Yeah, I think that windows is that precise;)
Yeah, I think that windows is that precise;)
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.
But first ask yourself if you really need that much precision.
Yeah, your right iblis.
Btw. I've seen such an accurate clock on Iczelions site
which uses the FPU to make some nice calculations :)
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:
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:
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
Raymond