Originally committed as revision 9706 to svn://svn.ffmpeg.org/ffmpeg/trunk
#include <unistd.h>
#include <fcntl.h>
#endif
-#include <sys/time.h>
-#include <time.h>
#ifndef HAVE_SYS_POLL_H
#if defined(__MINGW32__)
#endif
#endif
-/**
- * gets the current time in micro seconds.
- */
-int64_t av_gettime(void)
-{
- struct timeval tv;
- gettimeofday(&tv,NULL);
- return (int64_t)tv.tv_sec * 1000000 + tv.tv_usec;
-}
-
#ifdef CONFIG_NETWORK
#include "network.h"
#include "opt.h"
#include "avstring.h"
#include "riff.h"
+#include <sys/time.h>
+#include <time.h>
#undef NDEBUG
#include <assert.h>
return ret;
}
+/**
+ * gets the current time in micro seconds.
+ */
+int64_t av_gettime(void)
+{
+ struct timeval tv;
+ gettimeofday(&tv,NULL);
+ return (int64_t)tv.tv_sec * 1000000 + tv.tv_usec;
+}
+
int64_t parse_date(const char *datestr, int duration)
{
const char *p;