summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-10-11 15:19:14 -0500
committerDudemanguy <random342@airmail.cc>2023-10-16 15:38:59 +0000
commit8f432b2e37bd2d421c21f828e41973710dfb8118 (patch)
tree522cf8da9821426f9a33d19114efa782ee2dcfed /player
parentbb036c67f4708e2bc10e7a382e447d40681208b8 (diff)
downloadmpv-8f432b2e37bd2d421c21f828e41973710dfb8118.tar.bz2
mpv-8f432b2e37bd2d421c21f828e41973710dfb8118.tar.xz
timer: remove microsecond timer functions
With the previous series of commits, all internal usage has been replaced by the nanosecond functions. There's not really any point in keeping these around anymore plus there are macros for unit conversions now so we can just axe them. It's worth noting that mpv_get_time_us() obviously still needs to work for API reasons, but we can just divide mp_time_ns() by 1000 to get the same thing.
Diffstat (limited to 'player')
-rw-r--r--player/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/client.c b/player/client.c
index 7117235852..cd0264e646 100644
--- a/player/client.c
+++ b/player/client.c
@@ -2136,7 +2136,7 @@ int64_t mpv_get_time_ns(mpv_handle *ctx)
int64_t mpv_get_time_us(mpv_handle *ctx)
{
- return mp_time_us();
+ return mp_time_ns() / 1000;
}
#include "video/out/libmpv.h"