summaryrefslogtreecommitdiffstats
path: root/player/client.c
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-09-29 16:07:54 -0500
committerDudemanguy <random342@airmail.cc>2023-10-10 19:10:55 +0000
commitfcebee9080a113f3248d218e451345db3f965b47 (patch)
tree6bec3e71f7d50b7b91e0fbec189ae9265067f1e4 /player/client.c
parent5d44cf93df47046c779fc4da68a09812a2ce4004 (diff)
downloadmpv-fcebee9080a113f3248d218e451345db3f965b47.tar.bz2
mpv-fcebee9080a113f3248d218e451345db3f965b47.tar.xz
libmpv: add mpv_time_ns()
9606c3fca9d568dc43711017dcb35a408c0d2883 added mp_time_ns(). Since we apparently expose the mp_time_us() to clients already, there's no reason to not also expose the new nanosecond one.
Diffstat (limited to 'player/client.c')
-rw-r--r--player/client.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/player/client.c b/player/client.c
index 71e4fb99c7..f16af4528e 100644
--- a/player/client.c
+++ b/player/client.c
@@ -2129,6 +2129,11 @@ void mpv_free(void *data)
talloc_free(data);
}
+int64_t mpv_get_time_ns(mpv_handle *ctx)
+{
+ return mp_time_ns();
+}
+
int64_t mpv_get_time_us(mpv_handle *ctx)
{
return mp_time_us();