summaryrefslogtreecommitdiffstats
path: root/osdep/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'osdep/timer.h')
-rw-r--r--osdep/timer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/osdep/timer.h b/osdep/timer.h
index 78457d9b9a..be5e9c0467 100644
--- a/osdep/timer.h
+++ b/osdep/timer.h
@@ -39,6 +39,9 @@ void mp_sleep_us(int64_t us);
#define MP_START_TIME 10000000
+// Duration of a second in mpv time.
+#define MP_SECOND_US (1000 * 1000)
+
// Add a time in seconds to the given time in microseconds, and return it.
// Takes care of possible overflows. Never returns a negative or 0 time.
int64_t mp_add_timeout(int64_t time_us, double timeout_sec);