X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmisc%2Fmtime.c;h=1d2ae6b9477059e0c1b6364cb73bf98a1d37c26f;hb=a08221745a28e350736f1ca68b6034074ed3f2e1;hp=4772425b5cc09f87a276b96a31a5abb909c46e7a;hpb=3425b2e6d5b3e19374a81fd4e40509414bc0bcd7;p=vlc diff --git a/src/misc/mtime.c b/src/misc/mtime.c index 4772425b5c..1d2ae6b947 100644 --- a/src/misc/mtime.c +++ b/src/misc/mtime.c @@ -3,7 +3,7 @@ * 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 * @@ -32,7 +32,7 @@ *****************************************************************************/ #include /* sprintf() */ -#include +#include #if defined( PTH_INIT_IN_PTH_H ) /* GNU Pth */ # include @@ -55,8 +55,8 @@ #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 @@ -83,7 +83,7 @@ char *mstrtime( char *psz_buffer, mtime_t date ) } /***************************************************************************** - * 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). @@ -122,7 +122,7 @@ mtime_t mdate( void ) } /***************************************************************************** - * 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 @@ -201,7 +201,7 @@ void mwait( mtime_t date ) } /***************************************************************************** - * msleep: more precise sleep() (inline function) (ok ?) + * msleep: more precise sleep() ***************************************************************************** * Portable usleep() function. *****************************************************************************/