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.

DS development > time(NULL) returning -1?

#97730 - bjoerngiesler - Fri Aug 11, 2006 9:43 am

I've got a problem with the time() function -- it always returns -1. gettimeofday() also produces nonsense. I must be missing something -- do I need to update a timer register somewhere?

Help is much appreciated.

#97741 - wintermute - Fri Aug 11, 2006 11:30 am

the time functions are currently not implemented, possibly in devkitARM release 20 since it's at least partially a newlib issue.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#97744 - bjoerngiesler - Fri Aug 11, 2006 11:41 am

wintermute wrote:
the time functions are currently not implemented, possibly in devkitARM release 20 since it's at least partially a newlib issue.


OK... so what is the optimal way of getting at the system time? IPC->rtcwhatever?

Thanks!