#include <cycletimer.h>
Definition at line 19 of file cycletimer.h.
◆ CycleTimer()
| CycleTimer::CycleTimer |
( |
| ) |
|
|
inline |
◆ GetInMs()
| int64_t CycleTimer::GetInMs |
( |
| ) |
const |
|
inline |
◆ GetNanos()
| int64_t CycleTimer::GetNanos |
( |
| ) |
const |
|
inlineprotected |
Definition at line 51 of file cycletimer.h.
52 return running_ ? absl::GetCurrentTimeNanos() - start_ + sum_ : sum_;
◆ Reset()
| void CycleTimer::Reset |
( |
| ) |
|
|
inline |
◆ Restart()
| void CycleTimer::Restart |
( |
| ) |
|
|
inline |
◆ Start()
| void CycleTimer::Start |
( |
| ) |
|
|
inline |
Definition at line 32 of file cycletimer.h.
34 start_ = absl::GetCurrentTimeNanos();
◆ Stop()
| void CycleTimer::Stop |
( |
| ) |
|
|
inline |
Definition at line 42 of file cycletimer.h.
44 sum_ += absl::GetCurrentTimeNanos() - start_;
The documentation for this class was generated from the following file: