Welcome! Log In Create A New Profile

Advanced

Clock

Posted by profetylen 
Clock
May 30, 2009 01:26AM
Can I get access to the wii's clock?
I want the milliseconds too.
Re: Clock
May 30, 2009 03:07AM
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.
Re: Clock
May 30, 2009 11:50AM
Okay!

Thanks!
Sorry, only registered users may post in this forum.

Click here to login