summaryrefslogtreecommitdiffstats
path: root/osdep/timer.c
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2015-07-04 19:26:14 +1000
committerwm4 <wm4@nowhere>2015-07-04 15:54:14 +0200
commitf544bcf1056e0acee483a951408160fa2d39ffdd (patch)
tree1abdb317482b008ead74c083ee0a804bae98ca2e /osdep/timer.c
parent029da5abce6e1ef6eddf351650fe7d6fe3746f0b (diff)
downloadmpv-f544bcf1056e0acee483a951408160fa2d39ffdd.tar.bz2
mpv-f544bcf1056e0acee483a951408160fa2d39ffdd.tar.xz
win32: use QueryPerformanceCounter for timing
clock_gettime is implemented in winpthreads, so it's unavailable when mpv is compiled with its internal pthreads implementation. This makes mp_raw_time_us fall back to gettimeofday(), which can cause an assert failure in mp_add_timeout() when the system clock is changed. Use QueryPerformanceCounter instead. The clock_gettime(CLOCK_MONOTONIC) implementation in winpthreads uses QueryPerformanceCounter anyway, so there shouldn't be any change in behaviour.
Diffstat (limited to 'osdep/timer.c')
0 files changed, 0 insertions, 0 deletions