Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
This is an older version of Boost and was released in 2018. The current version is 1.89.0.
Boost.Asio provides timers based on the std::chrono facilities
via the basic_waitable_timer
class template. The typedefs system_timer,
steady_timer and
high_resolution_timer
utilise the standard clocks system_clock, steady_clock
and high_resolution_clock respectively.
Support for the std::chrono facilities is automatically enabled
for g++ 4.6 and later, when the -std=c++0x
or -std=gnu++0x compiler options are used. (Note that,
for g++, the draft-standard monotonic_clock
is used in place of steady_clock.) Support may be disabled
by defining BOOST_ASIO_DISABLE_STD_CHRONO, or explicitly enabled
for other compilers by defining BOOST_ASIO_HAS_STD_CHRONO.
When standard chrono is unavailable, Boost.Asio will otherwise
use the Boost.Chrono library. The basic_waitable_timer
class template may be used with either.