|
Ninja
|
A simple stopwatch which returns the time in seconds since Restart() was called. More...
#include <metrics.h>
Public Member Functions | |
| double | Elapsed () const |
| Seconds since Restart() call. | |
| void | Restart () |
| Stopwatch () | |
Private Member Functions | |
| uint64_t | Now () const |
Private Attributes | |
| uint64_t | started_ |
A simple stopwatch which returns the time in seconds since Restart() was called.
| Stopwatch::Stopwatch | ( | ) | [inline] |
| double Stopwatch::Elapsed | ( | ) | const [inline] |
Seconds since Restart() call.
Definition at line 72 of file metrics.h.
Referenced by BuildStatus::RateInfo::Elapsed(), BuildStatus::RateInfo::UpdateRate(), and BuildStatus::SlidingRateInfo::UpdateRate().
| uint64_t Stopwatch::Now | ( | ) | const [private] |
Definition at line 118 of file metrics.cc.
| void Stopwatch::Restart | ( | ) | [inline] |
Definition at line 76 of file metrics.h.
Referenced by BuildStatus::RateInfo::Restart(), and BuildStatus::SlidingRateInfo::Restart().
uint64_t Stopwatch::started_ [private] |
1.7.6.1