Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8070: prefer GetTickCount64 over GetTickCount
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-16 16:39:34
#8070: prefer GetTickCount64 over GetTickCount
----------------------------------+-----------------------------------------
Reporter: alex@⦠| Owner: viboes
Type: Bugs | Status: assigned
Milestone: To Be Determined | Component: thread
Version: Boost 1.52.0 | Severity: Cosmetic
Resolution: | Keywords:
----------------------------------+-----------------------------------------
Comment (by alex@â¦):
Absolutely:
C28159 Consider using another function instead.
Consider using 'GetTickCount64' instead of 'GetTickCount'.
Reason: GetTickCount overflows roughly every 49 days. Code that does not
take that into account can loop indefinitely. GetTickCount64 operates on
64 bit values and does not have that problem.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8070#comment:2> 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:12 UTC