gettimeofday.c
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:0k
源码类别:

流媒体/Mpeg4/MP4

开发平台:

Visual C++

  1. #include "config_unix.h"
  2. #include "config_win32.h"
  3. #include "gettimeofday.h"
  4. #if defined(NEED_GETTIMEOFDAY) && defined(WIN32)
  5. int gettimeofday(struct timeval *tp, void *tz)
  6. {
  7. struct _timeb timebuffer;   
  8. _ftime( &timebuffer );
  9. tp->tv_sec  = timebuffer.time;
  10. tp->tv_usec = timebuffer.millitm * 1000;
  11. return 0;
  12. }
  13. #endif