My millisecond timer looks like this, it seems to work okay for simple stuff
#include < ogc/lwp_watchdog.h >
extern u32 GFX_GetTime() {
return ( ticks_to_millisecs(gettime()) );
}
extern u32 GFX_GetElapsedTime(const u32 last) {
return ( ticks_to_millisecs(gettime()) - last );
}
Edited 2 time(s). Last edit at 05/30/2009 03:09AM by DrTwox.