[Mplayer-cvslog] CVS: main/osdep gettimeofday.c,NONE,1.1
Sascha Sommer CVS
faust3 at mplayerhq.hu
Fri Apr 4 21:28:07 CEST 2003
Update of /cvsroot/mplayer/main/osdep
In directory mail:/var/tmp.root/cvs-serv28181/osdep
Added Files:
gettimeofday.c
Log Message:
gettimeofday() emulation using ftime()
--- NEW FILE ---
#ifndef HAVE_GETTIMEOFDAY
#include <sys/time.h>
#include <sys/timeb.h>
void gettimeofday(struct timeval* t,void* timezone)
{ struct timeb timebuffer;
ftime( &timebuffer );
t->tv_sec=timebuffer.time;
t->tv_usec=1000*timebuffer.millitm;
}
#endif
More information about the MPlayer-cvslog
mailing list