mpv_get_time_us

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.

extern (C)
long
mpv_get_time_us

Meta