FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
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.

Functions

int64_t av_gettime (void)
 Get the current time in microseconds.
 
int av_usleep (unsigned usec)
 Sleep for a period of time.
 

Function Documentation

int64_t av_gettime ( void  )
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 56 of file time.c.

Referenced by hls_read(), main(), rate_emu_sleep(), read_data(), refresh_loop_wait_event(), retry_transfer_wrapper(), rtmp_http_read(), and transcode_step().