Create Clock.hpp

This commit is contained in:
tobid7 2021-12-01 20:33:46 +01:00 committed by GitHub
parent d22b7b718c
commit c697ae9bd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

23
internal/Clock.hpp Normal file
View 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
};
}