2 (c) Copyright 1992 Eric Backus
4 This software may be used freely so long as this copyright notice is
5 left intact. There is no warrantee on this software.
12 int gettimeofday(struct timeval * tp, struct timezone * tzp)
18 time_t theTime = time(NULL);
21 tmrec = *localtime(&theTime);
22 tp->tv_sec = mktime(&tmrec);
23 GetLocalTime(&systime); /* system time */
25 tp->tv_usec = systime.wMilliseconds * 1000;