aboutsummaryrefslogtreecommitdiff
path: root/src/common/perf_timer.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-11 11:17:29 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-12-07 14:23:47 +0000
commit6a507dab6f935b0d8c417299ba4f5be4882582bb (patch)
treea628451e1159b9c1766f0abb6ea9dc0464617a16 /src/common/perf_timer.h
parentperf_timer: only log to file (diff)
downloadmonero-6a507dab6f935b0d8c417299ba4f5be4882582bb.tar.xz
perf_timer: add a way to get and reset the current time
Diffstat (limited to '')
-rw-r--r--src/common/perf_timer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/perf_timer.h b/src/common/perf_timer.h
index 584434a0d..c33aaae12 100644
--- a/src/common/perf_timer.h
+++ b/src/common/perf_timer.h
@@ -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;