I need to do a timer in my program with precision greater than seconds. I am aware of TimGetTicks, but was unsure how predictable this is. The way the API reads makes me think that SysTicksPerSecond can return different results at different times - which, over the period of time that is being tracked, might fluctuate and distort the results if my end calculation depends on consistently timed SysTicks being produced.
Consider the following pseudo-code: startTime = SysGetTicks(); ...then once timer is over doing the following: endTime = SysGetTicks(); elapsedTime = endTime - startTime; numSeconds = elapsedTime / SysTicksPerSecond runRemainder = (elapsedTime % SysTicksPerSecond) * 100 Is this reliable? Anyone have something they have used? Thanks! Mike -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
