summaryrefslogtreecommitdiffstats
path: root/osdep/timer-win32.c
Commit message (Collapse)AuthorAgeFilesLines
* various: remove unused sys/time.h includeKacper Michajłow11 days1-1/+0
|
* win32: increase hires timer resolutionnanahi2024-03-191-17/+34
| | | | | | | | | | | timeBeginPeriod() only allows setting minimum timer resolution to 1 ms. However, modern x86 platforms support a minimum timer resolution of 0.5 ms. Use NtSetTimerResolution() instead for the increased resolution, which can be set with MPV_HRT_RES. Additionally, change the units of mp_start_hires_timers(), mp_end_hires_timer(), MPV_HRT_RES, and MPV_HRT_MAX to nanoseconds, in accordance with other functions used in timer.h.
* osdep/timer-win2: rename to timer-win32Kacper Michajłow2023-10-251-0/+141