summaryrefslogtreecommitdiffstats
path: root/osdep/timer.h
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2023-10-27 01:24:41 +0600
committerDudemanguy <random342@airmail.cc>2023-10-27 18:07:19 +0000
commit8bbcc87feea7abf256a6c7f511244d09f5520c17 (patch)
tree069ce26d65fa713aec56592f53a51bfd6e48d5d2 /osdep/timer.h
parent2f91e1441e46f80d12998520b7ebce44c28e1da6 (diff)
downloadmpv-8bbcc87feea7abf256a6c7f511244d09f5520c17.tar.bz2
mpv-8bbcc87feea7abf256a6c7f511244d09f5520c17.tar.xz
timer: remove MP_START_TIME
instead require mp_raw_time_ns() to not return 0, which all current implementation already should follow.
Diffstat (limited to 'osdep/timer.h')
-rw-r--r--osdep/timer.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/osdep/timer.h b/osdep/timer.h
index 265e161ef2..ba7e22d6c5 100644
--- a/osdep/timer.h
+++ b/osdep/timer.h
@@ -32,6 +32,7 @@ double mp_time_sec(void);
// Provided by OS specific functions (timer-linux.c)
void mp_raw_time_init(void);
+// ensure this doesn't return 0
uint64_t mp_raw_time_ns(void);
// Sleep in nanoseconds.
@@ -45,8 +46,6 @@ int mp_start_hires_timers(int wait_ms);
void mp_end_hires_timers(int resolution_ms);
#endif /* _WIN32 */
-#define MP_START_TIME 10 * INT64_C(1000000000)
-
// Converts time units to nanoseconds (int64_t)
#define MP_TIME_S_TO_NS(s) ((s) * INT64_C(1000000000))
#define MP_TIME_MS_TO_NS(ms) ((ms) * INT64_C(1000000))