Dave, >The palm SDK describes the functions TimGetTicks and TimGetSeconds. > >The former has a resolution of 1/100 second, however, it only increments >when the device is not in sleep mode. > >TimGetSeconds has a resolution of 1 second, although I've done some tests >and the underlying accuracy appears to be better than 1 second - even when >the device has been in sleep mode. > >My question is, how can I get accuracy AND resolution better than 1/10 >second. Are there any undocumented calls to look at a counter on the CPU? > >I'd appreciate any advice on this. Handling elapsed time during sleep mode is a separate topic. As far as your question re more accurate timers using CPU counters, I wrote an article a while ago for Handheld Systems Journal re microsecond elapsed time on the Palm. The code is at <ftp://ftp.transpac.com/timer/>. The article was in Issue 6.6, Nov/Dec 1998. There's some info still at <http://www.cdpubs.com/hhsys/>, but the magazine is no longer published. -- Ken Ken Krugler TransPac Software, Inc. <http://www.transpac.com> +1 530-470-9200
