diff options
author | Pavel P <pavlov.pavel@gmail.com> | 2018-11-26 15:10:10 -0800 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2018-12-23 02:30:37 -0500 |
commit | e9ababd4f5aff042dd3b5a4f9568f22e6604d115 (patch) | |
tree | 57d2927109db050fa429e5e78fee5045e085edcd /docs/examples/persistent.c | |
parent | c98ee5f67f497195c9127cc70fa53a487f994cd5 (diff) |
timeval: Use high resolution timestamps on Windows
- Use QueryPerformanceCounter on Windows Vista+
There is confusing info floating around that QueryPerformanceCounter
can leap etc, which might have been true long time ago, but no longer
the case nowadays (perhaps starting from WinXP?). Also, boost and
std::chrono::steady_clock use QueryPerformanceCounter in a similar way.
Prior to this change GetTickCount or GetTickCount64 was used, which has
lower resolution. That is still the case for <= XP.
Fixes https://github.com/curl/curl/issues/3309
Closes https://github.com/curl/curl/pull/3318
Diffstat (limited to 'docs/examples/persistent.c')
0 files changed, 0 insertions, 0 deletions