SDL-mirror/src/timer
Ryan C. Gordon 374ad1d764 From: Tyler Montbriand <tsm@accesscomm.ca>
To: sdl@libsdl.org
Date: Fri, 30 Sep 2005 02:24:50 -0600
Subject: [SDL] WinCE timers, continued

Here's a strange timer for Windows CE that doesn't ignore time across
suspends.  It uses GetSystemTime to keep the time continuous, and GetTicks to
get finer-grained readings than 1 second.  It detects the difference between
the GetTicks time and GetSystemTime time on power-on to keep the error within
one second max.

It's not a patch on the current win32 timer code -- took one look at that and
figured it had more than enough #ifdefs already.  It's windows-ce specific.

Another thing I've noticed is that the Windows CE 4.0 and newer API has
functions warn processes about suspends.  This is something SDL REALLY needs
for audio in particular, because turning it off while it's playing causes
anything that uses audio to hardlock the system on power-on.  Unfortunately I
don't have 4.0 to play with.  :(

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401183
2005-11-22 07:10:07 +00:00
..
amigaos Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
beos Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
dc Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
epoc Updated copyright information for 2002 2002-03-06 11:23:08 +00:00
linux POSIX clock_gettime() isn't available on Linux before 2.6, and the symbol may 2005-10-11 20:05:54 +00:00
macos Updated copyright information for 2004 (Happy New Year!) 2004-01-04 16:49:27 +00:00
mint Release CPU when waiting 2005-04-01 15:19:26 +00:00
riscos Date: Wed, 26 Jan 2005 13:37:09 GMT 2005-02-12 18:01:31 +00:00
win32 From: Tyler Montbriand <tsm@accesscomm.ca> 2005-11-22 07:10:07 +00:00
wince From: Tyler Montbriand <tsm@accesscomm.ca> 2005-11-22 07:10:07 +00:00
.cvsignore *** empty log message *** 2002-06-13 17:52:43 +00:00
Makefile.am Fixed "dist" make target for newer versions of automake 2003-12-14 06:25:53 +00:00
SDL_systimer.h Updated the source with the correct e-mail address 2001-12-14 12:38:15 +00:00
SDL_timer.c From: Jim Paris <jim_jtan_com> 2005-08-17 00:19:45 +00:00
SDL_timer_c.h Updated the source with the correct e-mail address 2001-12-14 12:38:15 +00:00