Windows: Kill the dedicated thread for monotonic clock_gettime()
authorChris Dickens <christopher.a.dickens@gmail.com>
Wed, 22 Jan 2020 17:43:37 +0000 (09:43 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Wed, 22 Jan 2020 17:43:37 +0000 (09:43 -0800)
commiteb66a6573daad7eae2d058c51a7e31bf7911e5ad
tree150e8cc382de72de8bb1be408d20701e2cb76c77
parente4e905700327f9f85791b23f09185ba84baa7549
Windows: Kill the dedicated thread for monotonic clock_gettime()

According to Microsoft, anything prior to Vista could provide
inconsistent results for the value of QueryPerformanceCounter() across
different cores. Now that XP is no longer supported, we can drop the
significant overhead of using a dedicated thread pinned to a single core
just to read a timestamp.

The C++11 steady_clock implementation directly wraps
QueryPerformanceCounter(), so if it is good enough for that then it is
good enough for our purposes.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/os/windows_common.c
libusb/version_nano.h