VLC  2.2.0-git
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
LibVLC time
LibVLC

These functions provide access to the LibVLC time/clock. More...

Collaboration diagram for LibVLC time:

Functions

int64_t libvlc_clock (void)
 Return the current time as defined by LibVLC.
static int64_t libvlc_delay (int64_t pts)
 Return the delay (in microseconds) until a certain timestamp.

Detailed Description

These functions provide access to the LibVLC time/clock.

Function Documentation

int64_t libvlc_clock ( void  )

Return the current time as defined by LibVLC.

The unit is the microsecond. Time increases monotonically (regardless of time zone changes and RTC adjustements). The origin is arbitrary but consistent across the whole system (e.g. the system uptim, the time since the system was booted).

Note
On systems that support it, the POSIX monotonic clock is used.

Referenced by libvlc_delay().

static int64_t libvlc_delay ( int64_t  pts)
inlinestatic

Return the delay (in microseconds) until a certain timestamp.

Parameters
ptstimestamp
Returns
negative if timestamp is in the past, positive if it is in the future

References libvlc_clock().