aboutsummaryrefslogtreecommitdiff
path: root/src/common/perf_timer.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-03-04 21:22:51 +0200
committerRiccardo Spagni <ric@spagni.net>2019-03-04 21:22:51 +0200
commita28237c9cacb074216b1ee1db40da32acde3acd0 (patch)
treeef8341e9821ba4d251bf588bd8b3adf148c4c528 /src/common/perf_timer.h
parentMerge pull request #5096 (diff)
parentperformance_tests: better stats, and keep track of timing history (diff)
downloadmonero-a28237c9cacb074216b1ee1db40da32acde3acd0.tar.xz
Merge pull request #5102
1eef0565 performance_tests: better stats, and keep track of timing history (moneromooo-monero)
Diffstat (limited to 'src/common/perf_timer.h')
-rw-r--r--src/common/perf_timer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/perf_timer.h b/src/common/perf_timer.h
index d859cf576..5203da205 100644
--- a/src/common/perf_timer.h
+++ b/src/common/perf_timer.h
@@ -53,6 +53,7 @@ public:
void resume();
void reset();
uint64_t value() const;
+ operator uint64_t() const { return value(); }
protected:
uint64_t ticks;