diff options
author | Dudemanguy <random342@airmail.cc> | 2023-10-11 11:41:15 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-10-16 15:38:59 +0000 |
commit | 5cda1a5deb9a5427e0fad613e33dea00f4eddd79 (patch) | |
tree | 6bb8ebffbadaa14a01014c031c75f52fc54ba86b /osdep/timer.h | |
parent | de9b800879706734721810427248e75ea5bdc0f9 (diff) | |
download | mpv-5cda1a5deb9a5427e0fad613e33dea00f4eddd79.tar.bz2 mpv-5cda1a5deb9a5427e0fad613e33dea00f4eddd79.tar.xz |
demux: convert cache updates to nanoseconds
As a bonus, we can remove the awkward and horribly named MP_SECOND_US.
Diffstat (limited to 'osdep/timer.h')
-rw-r--r-- | osdep/timer.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/osdep/timer.h b/osdep/timer.h index efbfc4e358..3d25055ff0 100644 --- a/osdep/timer.h +++ b/osdep/timer.h @@ -60,9 +60,6 @@ void mp_end_hires_timers(int resolution_ms); #define MP_TIME_NS_TO_MS(ns) ((ns) / (double)1000000) #define MP_TIME_NS_TO_US(ns) ((ns) / (double)1000) -// 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_time_us_add(int64_t time_us, double timeout_sec); |