mirror of
https://github.com/monero-project/monero.git
synced 2025-08-13 12:55:34 -04:00
perf_timer: add a way to get and reset the current time
This commit is contained in:
parent
c1581a5bb8
commit
6a507dab6f
2 changed files with 18 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue