openmohaa/code/gamespy/common/nitro/gsTimerNitro.c
2023-02-04 21:00:01 +01:00

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;
}