From 4637b029cdd168d4196f5ab69fa5f91556ee5d11 Mon Sep 17 00:00:00 2001 From: Pedro Pombeiro Date: Tue, 27 Jun 2017 13:50:58 +0200 Subject: Universal Windows Plaform (UWP) support libmpv only. Some things are still missing. Heavily reworked. Signed-off-by: wm4 --- osdep/timer-win2.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'osdep/timer-win2.c') diff --git a/osdep/timer-win2.c b/osdep/timer-win2.c index 6527adc0cd..63c423560f 100644 --- a/osdep/timer-win2.c +++ b/osdep/timer-win2.c @@ -21,6 +21,8 @@ #include #include "timer.h" +#include "config.h" + static LARGE_INTEGER perf_freq; void mp_sleep_us(int64_t us) @@ -50,5 +52,7 @@ uint64_t mp_raw_time_us(void) void mp_raw_time_init(void) { QueryPerformanceFrequency(&perf_freq); +#if !HAVE_UWP timeBeginPeriod(1); // request 1ms timer resolution +#endif } -- cgit v1.2.3