MCPcopy Create free account
hub / github.com/byhook/ffmpeg4android / getutime

Function getutime

ffmpeg-single-cmd/src/main/cpp/ffmpeg_mod.c:4692–4708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4690
4691
4692static int64_t getutime(void)
4693{
4694#if HAVE_GETRUSAGE
4695 struct rusage rusage;
4696
4697 getrusage(RUSAGE_SELF, &rusage);
4698 return (rusage.ru_utime.tv_sec * 1000000LL) + rusage.ru_utime.tv_usec;
4699#elif HAVE_GETPROCESSTIMES
4700 HANDLE proc;
4701 FILETIME c, e, k, u;
4702 proc = GetCurrentProcess();
4703 GetProcessTimes(proc, &c, &e, &k, &u);
4704 return ((int64_t) u.dwHighDateTime << 32 | u.dwLowDateTime) / 10;
4705#else
4706 return av_gettime_relative();
4707#endif
4708}
4709
4710static int64_t getmaxrss(void)
4711{

Callers 2

update_benchmarkFunction · 0.85
execFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected