Re: GetInterruptTime(), Win NT, x86 & x64
Posted: Sun Sep 13, 2009 9:22 am
Hmm! does GetTickCount_() show the same? As I sad I'm not entirely sure if that is how that function is coded,
but it does use the value from that shared memory in any case.
My advise. Use ElapsedMilliseconds() which is pretty much the same as GetTickCount if you need just simple timing like wait x seconds etc. Ad it's crossplatform.
If you want a bit more precision on Windows timeGetTime_() is advised, and only use the timeBeginPeriod if you really need it.
Now that PB 4.40 has the new window timers I advice using that instead and use WaitWindowEvent() without a timeout at all.
Again this is cross platform.
I may actually toss out the macro I mentioned above, I think I'm gonna try using Timer Queues instead and redo the graphics loop to work with that.
It's a shame PureBasic has no Timer Queues yet. (the window timers are not accurate nor fast enough for such timings).
but it does use the value from that shared memory in any case.
My advise. Use ElapsedMilliseconds() which is pretty much the same as GetTickCount if you need just simple timing like wait x seconds etc. Ad it's crossplatform.
If you want a bit more precision on Windows timeGetTime_() is advised, and only use the timeBeginPeriod if you really need it.
Now that PB 4.40 has the new window timers I advice using that instead and use WaitWindowEvent() without a timeout at all.
Again this is cross platform.
I may actually toss out the macro I mentioned above, I think I'm gonna try using Timer Queues instead and redo the graphics loop to work with that.
It's a shame PureBasic has no Timer Queues yet. (the window timers are not accurate nor fast enough for such timings).