Skip to content

Commit f75a5d9

Browse files
committed
Always start timer stopped.
1 parent 705fb56 commit f75a5d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/boost/move/detail/nsec_clock.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class cpu_timer
198198
public:
199199

200200
// constructor
201-
cpu_timer() BOOST_NOEXCEPT { start(); }
201+
cpu_timer() BOOST_NOEXCEPT : m_is_stopped(true) {}
202202

203203
// observers
204204
bool is_stopped() const BOOST_NOEXCEPT { return m_is_stopped; }

0 commit comments

Comments
 (0)