gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > External Timers

#19473 - CyberSlag5k - Tue Apr 20, 2004 6:20 pm

Can I use a timer other than those built into the gba? Like time.h, for example?

#19487 - yaustar - Tue Apr 20, 2004 8:38 pm

I think time.h is windows specific as the GBA doesnt have a built in clock. Dont quote me on that though...
_________________
[Blog] [Portfolio]

#19491 - tepples - Tue Apr 20, 2004 9:52 pm

C's time.h isn't Windows specific; as far as I know it's part of the ANSI C standard. However, the C library implementations commonly used on GBA lack drivers for I/O devices such as clocks and terminals. Anybody up for implementing the functions declared in time.h in terms of the Pokemon RTC interface?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#19498 - yaustar - Tue Apr 20, 2004 10:48 pm

doh.. forgot about the RTC in carts... a .h for them would be great :)
_________________
[Blog] [Portfolio]