* mtime.c: high rezolution time management functions
* Functions are prototyped in mtime.h.
*****************************************************************************
- * Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: mtime.c,v 1.24 2001/06/28 22:12:04 gbazin Exp $
+ * Copyright (C) 1998-2001 VideoLAN
+ * $Id: mtime.c,v 1.27 2001/12/30 07:09:56 sam Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
*
/*****************************************************************************
* Preamble
*****************************************************************************/
-#include "defs.h"
-
#include <stdio.h> /* sprintf() */
+#include <videolan/vlc.h>
+
#if defined( PTH_INIT_IN_PTH_H ) /* GNU Pth */
# include <pth.h>
#endif
# include <sys/time.h>
#endif
-#include "config.h"
-#include "common.h"
-#include "mtime.h"
-
/*****************************************************************************
* mstrtime: return a date in a readable format
*****************************************************************************
QueryPerformanceCounter( (LARGE_INTEGER *)&usec_time );
return ( usec_time * 1000000 ) / freq;
}
- else
- {
- /* Milisecond resolution */
- return 1000 * GetTickCount();
- }
+
+ /* Milisecond resolution */
+ return 1000 * GetTickCount();
#else
struct timeval tv_date;