This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Getting the Milliseconds from the clock


Getting the Milliseconds from the clock

Postby Jay Mattis » Jul 9, 2002 @ 6:03pm

Is there any way to get the current milliseconds from the clock on the ppc?
Jay Mattis
pm Member
 
Posts: 66
Joined: Jan 12, 2002 @ 5:50pm
Location: NY


Postby BurningSheep » Jul 9, 2002 @ 6:11pm

hehe, since I've got nothing better to do at the moment anyway, GetTickCount() returns the number of milliseconds since the device was started...

work is kinda slow :D
Do you want custom Snails levels? Click
User avatar
BurningSheep
pm Insider
 
Posts: 1226
Joined: Apr 12, 2002 @ 11:49pm
Location: The Netherlands


Postby Jay Mattis » Jul 9, 2002 @ 6:12pm

:-) Thanks.
Jay Mattis
pm Member
 
Posts: 66
Joined: Jan 12, 2002 @ 5:50pm
Location: NY


Postby Kzinti » Jul 9, 2002 @ 6:44pm

If you are using PocketFrog, you should use the PocketPC::GetTime() method instead.

This will work reliably on both PocketPC and desktop PC, which is not the case of GetTickCount().
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby BurningSheep » Jul 9, 2002 @ 6:59pm

you sure? well probably you are since you wrote PocketFrog :D but I don't seem to have a PocketPC::GetTime() method and haven't had any problems with GetTickCount()
Do you want custom Snails levels? Click
User avatar
BurningSheep
pm Insider
 
Posts: 1226
Joined: Apr 12, 2002 @ 11:49pm
Location: The Netherlands


Postby Kzinti » Jul 9, 2002 @ 7:13pm

GetTickCount() can have any resolution in Windows NT (i.e.: the resolution is NOT 1 ms).

You want to use timeGetTime() on the desktop PC and GetTickCount() on the Pocket PC. That's why there is a method to retrieve the time in PocketFrog.

Not exactly sure about the name anymore, it might be something different then GetTime(). In any case, it will be in class PocketPC and will have an obvious name.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby BurningSheep » Jul 9, 2002 @ 7:41pm

Do you want custom Snails levels? Click
User avatar
BurningSheep
pm Insider
 
Posts: 1226
Joined: Apr 12, 2002 @ 11:49pm
Location: The Netherlands


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum