MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / av_gettime

Function av_gettime

libavutil/time.c:39–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37#include "error.h"
38
39int64_t av_gettime(void)
40{
41#if HAVE_GETTIMEOFDAY
42 struct timeval tv;
43 gettimeofday(&tv, NULL);
44 return (int64_t)tv.tv_sec * 1000000 + tv.tv_usec;
45#elif HAVE_GETSYSTEMTIMEASFILETIME
46 FILETIME ft;
47 int64_t t;
48 GetSystemTimeAsFileTime(&ft);
49 t = (int64_t)ft.dwHighDateTime << 32 | ft.dwLowDateTime;
50 return t / 10 - 11644473600000000; /* Jan 1, 1601 */
51#else
52 return -1;
53#endif
54}
55
56int64_t av_gettime_relative(void)
57{

Callers 15

audio_read_packetFunction · 0.85
xcbgrab_read_packetFunction · 0.85
pulse_read_packetFunction · 0.85
audio_read_packetFunction · 0.85
init_convert_timestampFunction · 0.85
convert_timestampFunction · 0.85
fbdev_read_packetFunction · 0.85
gdigrab_read_packetFunction · 0.85
process_callbackFunction · 0.85
audio_read_packetFunction · 0.85
read_packetFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68