FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
time.h File Reference
#include <stdint.h>

Go to the source code of this file.

Functions

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

int64_t av_gettime ( void  )
int64_t av_gettime_relative ( void  )
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.

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.

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

Definition at line 84 of file time.c.

Referenced by audio_decode_frame(), encode_frame(), failing_write_packet(), ff_dxva2_common_end_frame(), fifo_thread_recover(), filter_frame(), gdigrab_read_packet(), hls_read(), http_read_stream(), 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().