Page 1 of 1
Getting the Milliseconds from the clock

Posted:
Jul 9, 2002 @ 6:03pm
by Jay Mattis
Is there any way to get the current milliseconds from the clock on the ppc?

Posted:
Jul 9, 2002 @ 6:11pm
by BurningSheep
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

Posted:
Jul 9, 2002 @ 6:12pm
by Jay Mattis
:-) Thanks.

Posted:
Jul 9, 2002 @ 6:44pm
by Kzinti
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().

Posted:
Jul 9, 2002 @ 6:59pm
by BurningSheep
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()

Posted:
Jul 9, 2002 @ 7:13pm
by Kzinti
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.

Posted:
Jul 9, 2002 @ 7:41pm
by BurningSheep