diff options
author | Tom Ross <midgey@rockbox.org> | 2007-07-30 05:19:05 +0000 |
---|---|---|
committer | Tom Ross <midgey@rockbox.org> | 2007-07-30 05:19:05 +0000 |
commit | e1147b87abef7687055c9127437e6ce1353c6113 (patch) | |
tree | ab9da3b3ca7efd58cbfcecf18c7735e95df8be92 /apps/plugins/rockboy/sys_rockbox.c | |
parent | 206a5d3585fcda50692fae2d60b2fba639c373b1 (diff) | |
download | rockbox-e1147b87abef7687055c9127437e6ce1353c6113.tar.gz rockbox-e1147b87abef7687055c9127437e6ce1353c6113.zip |
RTC (real time clock) support for Rockboy. The time in games like Pokemon Gold/Silver should now stay synced on RTC-capable targets. Other targets will lose track of time when the player is turned off. User's can edit the .rtc file in an attempt to resync the RTC. The clock should stay synced when entering and leaving the menu. I've tested this over the past two weeks and it seems to work well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14071 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/rockboy/sys_rockbox.c')
-rw-r--r-- | apps/plugins/rockboy/sys_rockbox.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/apps/plugins/rockboy/sys_rockbox.c b/apps/plugins/rockboy/sys_rockbox.c index 60cac0a88d..fe3326737d 100644 --- a/apps/plugins/rockboy/sys_rockbox.c +++ b/apps/plugins/rockboy/sys_rockbox.c | |||
@@ -328,23 +328,3 @@ void vid_update(int scanline) | |||
328 | } | 328 | } |
329 | #endif | 329 | #endif |
330 | 330 | ||
331 | long timerresult; | ||
332 | |||
333 | void *sys_timer(void) | ||
334 | { | ||
335 | /*timerresult=*rb->current_tick; | ||
336 | return &timerresult;*/ | ||
337 | return 0; | ||
338 | } | ||
339 | |||
340 | /* returns microseconds passed since sys_timer */ | ||
341 | int sys_elapsed(long *oldtick) | ||
342 | { | ||
343 | /* int elap,mytime=microtick; | ||
344 | |||
345 | elap=mytime-*oldtick; | ||
346 | *oldtick=mytime; | ||
347 | return elap; */ | ||
348 | /* return ((*rb->current_tick-(*oldtick))*1000000)/HZ; */ | ||
349 | return *oldtick; | ||
350 | } | ||