git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4292
ffa7fe5e-494d-0410-b361-
a75ebd5db220
#endif
#endif
+#ifdef _MSC_VER
+int gettimeofday(struct timeval *time, void *local)
+{
+ int milliseconds = GetTickCount();
+
+ time->tv_sec = milliseconds/1000;
+ time->tv_usec = (milliseconds - (time->tv_sec * 1000)) * 1000;
+
+ return 0;
+}
+#endif
/**
* Convert an ISO 8601-style time string into epoch time.
*
#endif
unsigned int iso8601_to_secs(char *iso8601);
char * current_to_iso8601(void);
+
+#ifdef _MSC_VER
+
+#include <winsock.h>
+
+int gettimeofday(struct timeval *time, void *);
+
+#endif
+
#endif