diff options
author | Dudemanguy <random342@airmail.cc> | 2023-10-11 15:19:14 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-10-16 15:38:59 +0000 |
commit | 8f432b2e37bd2d421c21f828e41973710dfb8118 (patch) | |
tree | 522cf8da9821426f9a33d19114efa782ee2dcfed /player | |
parent | bb036c67f4708e2bc10e7a382e447d40681208b8 (diff) | |
download | mpv-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.c | 2 |
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" |