2 * Acess2 POSIX Emulation
3 * - By John Hodge (thePowersGang)
13 int getitimer(int which, struct itimerval *current_value)
18 int setitimer(int which, const struct itimerval *new_value, struct itimerval *old_value)
24 int gettimeofday(struct timeval *tv, struct timezone *tz)
26 const int correction_2k_to_unix = 30*365*24*3600;
27 long long int ts = _SysTimestamp();
30 tv->tv_sec = ts / 1000 + correction_2k_to_unix;
31 tv->tv_usec = (ts % 1000) * 1000;
35 // TODO: Determine timezone?
36 tz->tz_minuteswest = 0;
43 //int settimeofday(const struct timeval *tv, const struct timezone *tz);