VLC 4.0.0-dev
Loading...
Searching...
No Matches
LibVLC time

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

◆ libvlc_clock()

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 adjustments). The origin is arbitrary but consistent across the whole system (e.g. the system uptime, the time since the system was booted).

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

Referenced by libvlc_delay().

◆ 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().