Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
81a9d32f
Commit
81a9d32f
authored
Apr 11, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: move getutime to the start of the file.
parent
0cd17a62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
ffmpeg.c
ffmpeg.c
+18
-18
No files found.
ffmpeg.c
View file @
81a9d32f
...
...
@@ -416,6 +416,24 @@ typedef struct OptionsContext {
}\
}
static
int64_t
getutime
(
void
)
{
#if HAVE_GETRUSAGE
struct
rusage
rusage
;
getrusage
(
RUSAGE_SELF
,
&
rusage
);
return
(
rusage
.
ru_utime
.
tv_sec
*
1000000LL
)
+
rusage
.
ru_utime
.
tv_usec
;
#elif HAVE_GETPROCESSTIMES
HANDLE
proc
;
FILETIME
c
,
e
,
k
,
u
;
proc
=
GetCurrentProcess
();
GetProcessTimes
(
proc
,
&
c
,
&
e
,
&
k
,
&
u
);
return
((
int64_t
)
u
.
dwHighDateTime
<<
32
|
u
.
dwLowDateTime
)
/
10
;
#else
return
av_gettime
();
#endif
}
static
void
reset_options
(
OptionsContext
*
o
,
int
is_input
)
{
const
OptionDef
*
po
=
options
;
...
...
@@ -4623,24 +4641,6 @@ static int opt_pass(const char *opt, const char *arg)
return
0
;
}
static
int64_t
getutime
(
void
)
{
#if HAVE_GETRUSAGE
struct
rusage
rusage
;
getrusage
(
RUSAGE_SELF
,
&
rusage
);
return
(
rusage
.
ru_utime
.
tv_sec
*
1000000LL
)
+
rusage
.
ru_utime
.
tv_usec
;
#elif HAVE_GETPROCESSTIMES
HANDLE
proc
;
FILETIME
c
,
e
,
k
,
u
;
proc
=
GetCurrentProcess
();
GetProcessTimes
(
proc
,
&
c
,
&
e
,
&
k
,
&
u
);
return
((
int64_t
)
u
.
dwHighDateTime
<<
32
|
u
.
dwLowDateTime
)
/
10
;
#else
return
av_gettime
();
#endif
}
static
int64_t
getmaxrss
(
void
)
{
#if HAVE_GETRUSAGE && HAVE_STRUCT_RUSAGE_RU_MAXRSS
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment