perf_timer: add a way to get and reset the current time

This commit is contained in:
moneromooo-monero
2018-03-11 11:17:29 +00:00
parent c1581a5bb8
commit 6a507dab6f
2 changed files with 18 additions and 2 deletions
+2 -2
View File
@@ -51,8 +51,8 @@ public:
~PerformanceTimer();
void pause();
void resume();
uint64_t value() const { return ticks; }
void reset();
uint64_t value() const;
protected:
uint64_t ticks;