* Functions are prototyped in mtime.h.
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
- * $Id: mtime.c,v 1.30 2002/05/17 16:38:41 sam Exp $
+ * $Id: mtime.c,v 1.33 2002/07/12 21:57:25 massiot Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
*
*****************************************************************************/
#include <stdio.h> /* sprintf() */
-#include <videolan/vlc.h>
+#include <vlc/vlc.h>
#if defined( PTH_INIT_IN_PTH_H ) /* GNU Pth */
# include <pth.h>
#if defined(HAVE_NANOSLEEP) && !defined(HAVE_STRUCT_TIMESPEC)
struct timespec
{
- time_t tv_sec;
- long tv_sec;
+ time_t tv_sec;
+ int32_t tv_nsec;
};
#endif
}
/*****************************************************************************
- * mdate: return high precision date (inline function)
+ * mdate: return high precision date
*****************************************************************************
* Uses the gettimeofday() function when possible (1 MHz resolution) or the
* ftime() function (1 kHz resolution).
}
/*****************************************************************************
- * mwait: wait for a date (inline function)
+ * mwait: wait for a date
*****************************************************************************
* This function uses select() and an system date function to wake up at a
* precise date. It should be used for process synchronization. If current date
}
/*****************************************************************************
- * msleep: more precise sleep() (inline function) (ok ?)
+ * msleep: more precise sleep()
*****************************************************************************
* Portable usleep() function.
*****************************************************************************/