Re: [Boost-bugs] [Boost C++ Libraries] #8070: prefer GetTickCount64 over GetTickCount

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8070: prefer GetTickCount64 over GetTickCount
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-02 14:56:27


#8070: prefer GetTickCount64 over GetTickCount
-------------------------------+----------------------
  Reporter: alex@… | Owner: viboes
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------

Comment (by raad@…):

 Please find attached a patch with a run-time check for GetTickCount64
 availability. Please note that ticks_type is always 64-bit with this patch
 and I don't think it's possible to implement this header-only without a
 huge run-time overhead, so there is a new cpp file.

 Alternatively, for the correct compile-time check for the target Windows
 version, you could just revert commit
 3ac48bdd65c4713438779e65a3f5ee4324a03b55 and add a macro like
 BOOST_THREAD_WIN32_DONT_USE_GET_TICK_COUNT_64 for those who are not
 willing to set their target Windows version correctly via _WIN32_WINNT. Or
 only let the user set BOOST_THREAD_WIN32_HAS_GET_TICK_COUNT_64.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8070#comment:28>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC