# HG changeset patch # User faust3 # Date 1049484466 0 # Node ID 0f2cc9ef24f694df707c242cbe0c222bad7ea039 # Parent c5fd755db576ee632117c81f24c6e9f7b373a41f gettimeofday() emulation using ftime() diff -r c5fd755db576 -r 0f2cc9ef24f6 osdep/gettimeofday.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/osdep/gettimeofday.c Fri Apr 04 19:27:46 2003 +0000 @@ -0,0 +1,11 @@ + +#ifndef HAVE_GETTIMEOFDAY +#include +#include +void gettimeofday(struct timeval* t,void* timezone) +{ struct timeb timebuffer; + ftime( &timebuffer ); + t->tv_sec=timebuffer.time; + t->tv_usec=1000*timebuffer.millitm; +} +#endif