diff options
Diffstat (limited to 'src/metrics.h')
-rw-r--r-- | src/metrics.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/metrics.h b/src/metrics.h index a4ef9f7..044011d 100644 --- a/src/metrics.h +++ b/src/metrics.h @@ -62,12 +62,10 @@ private: /// Epoch varies between platforms; only useful for measuring elapsed time. int64_t GetTimeMillis(); - /// A simple stopwatch which returns the time /// in seconds since Restart() was called. -class Stopwatch -{ -public: +class Stopwatch { + public: Stopwatch() : started_(0) {} /// Seconds since Restart() call. @@ -80,7 +78,6 @@ private: uint64_t Now() const; }; - /// The primary interface to metrics. Use METRIC_RECORD("foobar") at the top /// of a function to get timing stats recorded for each call of the function. #define METRIC_RECORD(name) \ |