Create Clock.hpp
This commit is contained in:
parent
d22b7b718c
commit
c697ae9bd1
23
internal/Clock.hpp
Normal file
23
internal/Clock.hpp
Normal file
@ -0,0 +1,23 @@
|
||||
#include <Time.hpp>
|
||||
|
||||
|
||||
namespace rnd7 {
|
||||
class Clock {
|
||||
public:
|
||||
Clock() {};
|
||||
|
||||
virtual ~Clock() {};
|
||||
|
||||
|
||||
virtual Time getCurrentTime() const { return Time{}; };
|
||||
|
||||
Time getElapsedTime() const;
|
||||
|
||||
Time restart();
|
||||
|
||||
protected:
|
||||
|
||||
Time m_startTime; ///< Time of last reset, in microseconds
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user