Make timer class non copyable
This commit is contained in:
@@ -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:
|
||||||
|
|
||||||
//@{
|
//@{
|
||||||
|
|||||||
Reference in New Issue
Block a user