time.c File Reference
#include "config.h"
#include <stddef.h>
#include <stdint.h>
#include <time.h>
#include "error.h"

Go to the source code of this file.


int64_t av_gettime (void)
 Get the current time in microseconds. More...
int64_t av_gettime_relative (void)
 Get the current time in microseconds since some unspecified starting point. More...
int av_gettime_relative_is_monotonic (void)
 Indicates with a boolean result if the av_gettime_relative() time source is monotonic. More...
int av_usleep (unsigned usec)
 Sleep for a period of time. More...

Function Documentation

◆ av_gettime()

int64_t av_gettime ( void  )

◆ av_gettime_relative()

int64_t av_gettime_relative ( void  )

◆ av_gettime_relative_is_monotonic()

int av_gettime_relative_is_monotonic ( void  )

Indicates with a boolean result if the av_gettime_relative() time source is monotonic.

Definition at line 71 of file time.c.

◆ av_usleep()

int av_usleep ( unsigned  usec)

Sleep for a period of time.

Although the duration is expressed in microseconds, the actual delay may be rounded to the precision of the system timer.

usecNumber of microseconds to sleep.
zero on success or (negative) error code.

Definition at line 84 of file time.c.

Referenced by activate(), audio_decode_frame(), decklink_autodetect(), encode_frame(), failing_write_packet(), ff_amf_receive_packet(), ff_dxva2_common_end_frame(), ff_network_sleep_interruptible(), ff_qsvvpp_filter_frame(), fifo_thread_recover(), filter_frame(), gdigrab_read_packet(), hls_read(), kmsgrab_read_packet(), main(), process_frame(), qsv_decode(), qsv_transfer_data_from(), qsv_transfer_data_to(), qsvscale_filter_frame(), read_data(), read_packet(), refresh_loop_wait_event(), retry_transfer_wrapper(), rtmp_http_read(), transcode_step(), and wait_frame().