[][src]Function libmpv_sys::mpv_get_time_us

pub unsafe extern "C" fn mpv_get_time_us(ctx: *mut mpv_handle) -> i64

Return the internal time in microseconds. This has an arbitrary start offset, but will never wrap or go backwards.

Note that this is always the real time, and doesn't necessarily have to do with playback time. For example, playback could go faster or slower due to playback speed, or due to playback being paused. Use the "time-pos" property instead to get the playback status.

Unlike other libmpv APIs, this can be called at absolutely any time (even within wakeup callbacks), as long as the context is valid.

Safe to be called from mpv render API threads.