mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-12 05:05:51 +00:00
15 lines
240 B
C
15 lines
240 B
C
|
#ifdef _MSC_VER
|
||
|
#pragma warning(disable:4100)
|
||
|
#endif
|
||
|
|
||
|
#include "windows.h"
|
||
|
|
||
|
void gettimeofday(struct timeval *tv, void *tz)
|
||
|
{
|
||
|
long int l = GetTickCount();
|
||
|
|
||
|
tv->tv_sec = l / 1000;
|
||
|
tv->tv_usec = (l % 1000) * 1000;
|
||
|
return;
|
||
|
}
|