Make timer class non copyable

This commit is contained in:
Jan Möbius
2023-12-01 07:54:20 +01:00
parent 242dacfaa1
commit 8ef01d3fb6

View File

@@ -98,8 +98,12 @@ public:
Timer(void); Timer(void);
/// Make the timer non copyable
Timer(const Timer& _other) = delete; Timer(const Timer& _other) = delete;
/// Make the timer non copyable
Timer& operator=( const Timer& ) = delete;
~Timer(void); ~Timer(void);
/// Returns true if self is in a valid state! /// Returns true if self is in a valid state!
@@ -144,6 +148,8 @@ public:
*/ */
static std::string as_string(double seconds, Format format = Automatic); static std::string as_string(double seconds, Format format = Automatic);
public: public:
//@{ //@{