Mercurial > libavformat.hg
comparison os_support.c @ 448:66217205fe4e libavformat
cygwin patch by ("Sascha Sommer" <saschasommer at freenet dot de>)
author | michael |
---|---|
date | Sat, 24 Apr 2004 11:51:38 +0000 |
parents | afbe3a5aae02 |
children | 4f2b5cb90216 |
comparison
equal
deleted
inserted
replaced
447:94aa265c18b9 | 448:66217205fe4e |
---|---|
32 #include <time.h> | 32 #include <time.h> |
33 | 33 |
34 int64_t av_gettime(void) | 34 int64_t av_gettime(void) |
35 { | 35 { |
36 #ifdef CONFIG_WIN32 | 36 #ifdef CONFIG_WIN32 |
37 struct _timeb tb; | 37 struct timeb tb; |
38 _ftime(&tb); | 38 _ftime(&tb); |
39 return ((int64_t)tb.time * int64_t_C(1000) + (int64_t)tb.millitm) * int64_t_C(1000); | 39 return ((int64_t)tb.time * int64_t_C(1000) + (int64_t)tb.millitm) * int64_t_C(1000); |
40 #else | 40 #else |
41 struct timeval tv; | 41 struct timeval tv; |
42 gettimeofday(&tv,NULL); | 42 gettimeofday(&tv,NULL); |