mirror of
https://github.com/Hamlib/Hamlib.git
synced 2024-09-23 11:27:25 +00:00
5c9e225125
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1602 7ae35d74-ebe9-4afe-98af-79ac388436b8
31 lines
402 B
C
31 lines
402 B
C
|
|
#include <config.h>
|
|
|
|
#ifdef HAVE_WINDOWS_H
|
|
#include <windows.h>
|
|
#endif
|
|
#ifdef HAVE_WINBASE_H
|
|
# include <winbase.h>
|
|
#endif
|
|
|
|
#ifdef HAVE_SYS_TIME_H
|
|
#include <sys/time.h>
|
|
#endif
|
|
|
|
/*
|
|
* broken implementation for WIN32.
|
|
* FIXME: usec precision
|
|
*/
|
|
int gettimeofday(struct timeval *tv, struct timezone *tz)
|
|
{
|
|
if (tv) {
|
|
time_t tm;
|
|
|
|
time(&tm);
|
|
tv->tv_sec = tm;
|
|
tv->tv_usec = 0;
|
|
}
|
|
return 0;
|
|
}
|
|
|