"Surendra" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am currently using TimGetTicks(), Is there any other function call or a > method to get the tick counts in 1/1000 of second. >
Unfortunately there isn't. This is, in my opinion, an area that could be greatly improved in the palm OS, but so far has not been. The only way to get any kind of true timer resolution greater than 1/100th of a second is to do a direct access of the hardware counters built-in to the individual CPUs. The only problem with this is that every CPU is different, and some don't have any documentation (e.g. Sony UX series) to let you know where these timers may reside, so that solution is terribly limited. What you're left with is basically using the 1/100 th of a second tick counter to provide a measuring system for a fake internal counter within the application code. In other words, if you have something that needs to be executed every 1/1000 th of a second, you're going to have to measure how many iterations of your program loop are made per 1/100th of a second, and then divide that amount by 10 to make a variable 'x' representing the number of iterations every thousandth of a second, and use that as a basis for a 1/1000th of a second timer. It's not at all accurate, but it's all there really is. -Robert -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
