From f75a5d9f50a526618faabd4792a36271b7c8b6c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sun, 29 Mar 2026 14:59:08 +0200 Subject: [PATCH] Always start timer stopped. --- include/boost/move/detail/nsec_clock.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/move/detail/nsec_clock.hpp b/include/boost/move/detail/nsec_clock.hpp index 62ec2df..fdcf7d4 100644 --- a/include/boost/move/detail/nsec_clock.hpp +++ b/include/boost/move/detail/nsec_clock.hpp @@ -198,7 +198,7 @@ class cpu_timer public: // constructor - cpu_timer() BOOST_NOEXCEPT { start(); } + cpu_timer() BOOST_NOEXCEPT : m_is_stopped(true) {} // observers bool is_stopped() const BOOST_NOEXCEPT { return m_is_stopped; }