gettimeofday.c
资源名称:NETVIDEO.rar [点击查看]
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:0k
源码类别:
流媒体/Mpeg4/MP4
开发平台:
Visual C++
- #include "config_unix.h"
- #include "config_win32.h"
- #include "gettimeofday.h"
- #if defined(NEED_GETTIMEOFDAY) && defined(WIN32)
- int gettimeofday(struct timeval *tp, void *tz)
- {
- struct _timeb timebuffer;
- _ftime( &timebuffer );
- tp->tv_sec = timebuffer.time;
- tp->tv_usec = timebuffer.millitm * 1000;
- return 0;
- }
- #endif