This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
Check for getrusage
Originally committed as revision 9627 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Ramiro Polla
18 years ago
parent
0f69ca7f14
commit
66be5b4536
2 changed files
with
5 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
configure
+2
-0
ffmpeg.c
+ 3
- 0
configure
View File
@@ -667,6 +667,7 @@ HAVE_LIST="
fast_unaligned
fork
freetype2
getrusage
imlib2
inet_aton
lrintf
@@ -1596,6 +1597,8 @@ elif check_func dlopen -ldl; then
ldl=-ldl
fi
check_func getrusage
check_func fork
test "$vhook" = "default" && vhook="$dlopen"
+ 2
- 0
ffmpeg.c
View File
@@ -3113,10 +3113,12 @@ static int64_t getutime(void)
#else
static int64_t getutime(void)
{
#ifdef HAVE_GETRUSAGE
struct rusage rusage;
getrusage(RUSAGE_SELF, &rusage);
return (rusage.ru_utime.tv_sec * 1000000LL) + rusage.ru_utime.tv_usec;
#endif
}
#endif
Write
Preview
Loading…
Cancel
Save