summaryrefslogtreecommitdiff
path: root/boost/timer
diff options
context:
space:
mode:
authorChanho Park <chanho61.park@samsung.com>2014-12-11 18:55:56 +0900
committerChanho Park <chanho61.park@samsung.com>2014-12-11 18:55:56 +0900
commit08c1e93fa36a49f49325a07fe91ff92c964c2b6c (patch)
tree7a7053ceb8874b28ec4b868d4c49b500008a102e /boost/timer
parentbb4dd8289b351fae6b55e303f189127a394a1edd (diff)
downloadboost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.tar.gz
boost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.tar.bz2
boost-08c1e93fa36a49f49325a07fe91ff92c964c2b6c.zip
Imported Upstream version 1.57.0upstream/1.57.0
Diffstat (limited to 'boost/timer')
-rw-r--r--boost/timer/timer.hpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/boost/timer/timer.hpp b/boost/timer/timer.hpp
index 4e6c271a84..792a8abd32 100644
--- a/boost/timer/timer.hpp
+++ b/boost/timer/timer.hpp
@@ -26,12 +26,6 @@
//--------------------------------------------------------------------------------------//
-// TODO:
-//
-// * Add BOOST_NOEXCEPT where applicable
-
-//--------------------------------------------------------------------------------------//
-
namespace boost
{
namespace timer
@@ -65,19 +59,19 @@ namespace timer
public:
// constructor
- cpu_timer() { start(); }
+ cpu_timer() BOOST_NOEXCEPT { start(); }
// observers
- bool is_stopped() const { return m_is_stopped; }
- cpu_times elapsed() const; // does not stop()
+ bool is_stopped() const BOOST_NOEXCEPT { return m_is_stopped; }
+ cpu_times elapsed() const BOOST_NOEXCEPT; // does not stop()
std::string format(short places, const std::string& format) const
{ return ::boost::timer::format(elapsed(), places, format); }
std::string format(short places = default_places) const
{ return ::boost::timer::format(elapsed(), places); }
// actions
- void start();
- void stop();
- void resume();
+ void start() BOOST_NOEXCEPT;
+ void stop() BOOST_NOEXCEPT;
+ void resume() BOOST_NOEXCEPT;
private:
cpu_times m_times;