mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
19 lines
No EOL
472 B
C
19 lines
No EOL
472 B
C
// NITRO
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
#include "../gsCommon.h"
|
|
|
|
// note that this doesn't return the standard time() value
|
|
// because the DS doesn't know what timezone it's in
|
|
time_t time(time_t *timer)
|
|
{
|
|
time_t t;
|
|
|
|
assert(OS_IsTickAvailable() == TRUE);
|
|
t = (time_t)OS_TicksToSeconds(OS_GetTick());
|
|
|
|
if(timer)
|
|
*timer = t;
|
|
|
|
return t;
|
|
} |