aboutsummaryrefslogtreecommitdiff
path: root/src/common/perf_timer.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-01-06 20:39:29 +0200
committerRiccardo Spagni <ric@spagni.net>2019-01-06 20:39:29 +0200
commitbe625a95af7061c208a52474817c96f50bf368fb (patch)
tree29ed2174db4b92b965b34f47f9730cbf2ad3d272 /src/common/perf_timer.h
parentMerge pull request #4952 (diff)
parentperf_timer: check allowed categories before logging (diff)
downloadmonero-be625a95af7061c208a52474817c96f50bf368fb.tar.xz
Merge pull request #4954
93c59b29 perf_timer: check allowed categories before logging (moneromooo-monero) 6a507dab perf_timer: add a way to get and reset the current time (moneromooo-monero) c1581a5b perf_timer: only log to file (moneromooo-monero)
Diffstat (limited to 'src/common/perf_timer.h')
-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 267f94161..d859cf576 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;