Disable undesirable copying Timer objects.

This commit is contained in:
Tetsuo Kiso 2012-03-03 21:12:40 +09:00
parent 01f8fee238
commit 88b1c7e738

View File

@ -22,6 +22,10 @@ class Timer
uint64_t m_wall; // wall-clock time in microseconds
CPUTime m_start_time;
// No copying allowed
Timer(const Timer&);
void operator=(const Timer&);
public:
/**
* 'm_is_running' is initially false. A timer needs to be explicitly started