home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************
- *
- * $Source$
- * $Date$
- * $Revision$
- * $State$
- * $Author$
- *
- * $Log$
- ***************************************************************************/
-
- static const char rcs_id[] = "$Id$";
-
- #include <sys/time.h>
- #include <time.h>
-
- void
- gettimeofday (struct timeval *tv, struct timezone *tz)
- {
- time_t t;
- struct tm *tmptr;
-
- t = time (NULL);
- tmptr = localtime (&t);
-
- tv->tv_sec = tmptr->tm_sec + tmptr->tm_min * 60 + tmptr->tm_hour * 60 * 60;
- tv->tv_usec = 0;
- }
-