diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-01-06 20:39:29 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-01-06 20:39:29 +0200 |
commit | be625a95af7061c208a52474817c96f50bf368fb (patch) | |
tree | 29ed2174db4b92b965b34f47f9730cbf2ad3d272 /src/common/perf_timer.h | |
parent | Merge pull request #4952 (diff) | |
parent | perf_timer: check allowed categories before logging (diff) | |
download | monero-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.h | 4 |
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; |