Go to http://www.access-company.com/developers/. Click "Documentation? then "Palm OS 68k SDK Documentation" then "Palm OS Companion and Reference" followed by "Palm OS Programmer's API Reference". Search for the TimGetTicks function.

Note: 1) SysTicksPerSecond returns 100 on all known devices. 2) TimGetTicks returns the number of ticks (divide by SysTicksPerSecond to get time in seconds) since the last *reset*. The tick count does not advance while the device is in sleep mode.


----- Original Message ----- From: "Sruthi" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[email protected]>
Sent: Monday, February 05, 2007 6:47 AM
Subject: Re: GETUPTIMEMS


hi Niel,

I tried both the functions. These are the results i got while trying.

We cant find SysGetTicks() in PalmOS 5 UI pdf.
Using  SysTicksPerSecond() i get 100 all times.

While using the GETUPTIMEMS() function it returns random number of 5 digits.

Since we are porting from brew need to get a value around this to get the code flow correct.
Hope i got my problem

Thanks in advance,
Sruthi




Neil Whitworth wrote:

Sruthi wrote:

hi all,

How to get the similar function like the GETUPTIMEMS() in PalmOS. In brew this function returns time in milliseconds since the device was powered on. We need to get the same feature in palmOS. Anyone gone through this issue please guide us.

Thanks,
Sruthi




SysGetTicks() returns the number of 'ticks' since last reboot.
SysTicksPerSecond() returns the numebr of 'ticks' per second.

Check the documentation, as system ticks are NOT advanced while the device is asleep.


--
For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/





--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to