Well I've searched the world over and not found much info about this,
so...
My timer code copies a small picture to a canvas, adds some graphics
to it, the draws it into my main window. The timer is set to repeat
at 16mSec. I snatch the Microseconds count at the start and the end
of the code, and use that to display the elapsed time inside the code
and outside. The execution time of the code averages around 4mSec and
the delay between executions is around 27mSec. Why isn't the total
cycle time close to my 16mSec period that I set? I understand that
the timer yields some to other tasks, but ... this much?
2nd question. Running this on Windows I get 0mSec execution time and
31mSec between executions. Changing my timer period to 15mSec and I
get 0mSec execution time and 16mSec between. Looks like the timer
resolution on Windows is 16mSec. Is it cause I'm running on an el-
cheapo PC or is this the way it is on all PCs? (This has the effect
on Windows of my animation running fast, or slow, with no in-between.)
Thanks for any light you can shed on this.
-Richard
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|