libavutil/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.
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.

usec Number of microseconds to sleep.
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_thread(), retry_transfer_wrapper(), rtmp_http_read(), and transcode_step().

Generated on Fri Oct 26 02:50:12 2012 for FFmpeg by  doxygen 1.5.8