diff --git a/src/OpenMesh/Tools/Utils/Timer.hh b/src/OpenMesh/Tools/Utils/Timer.hh index f96870b5..b8b3b665 100644 --- a/src/OpenMesh/Tools/Utils/Timer.hh +++ b/src/OpenMesh/Tools/Utils/Timer.hh @@ -98,8 +98,12 @@ public: Timer(void); + /// Make the timer non copyable Timer(const Timer& _other) = delete; + /// Make the timer non copyable + Timer& operator=( const Timer& ) = delete; + ~Timer(void); /// Returns true if self is in a valid state! @@ -144,6 +148,8 @@ public: */ static std::string as_string(double seconds, Format format = Automatic); + + public: //@{