FFmpeg libavutil/time.c
int64_t av_gettime_relative(void)
{
#if HAVE_CLOCK_GETTIME && defined(CLOCK_MONOTONIC)
/*
如果有clock_gettime函数
和定义了CLOCK_MONOTONIC(从系统重启到现在所经过的时间)
就通过clock_gettime该函数来获取系统启动到现在经过的时间
*/
#ifdef __APPLE__
if (clock_gettime)
#endif
{
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC,<