diff options
author | Evan Martin <martine@danga.com> | 2012-10-17 18:54:45 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-10-17 18:54:45 (GMT) |
commit | b022e789fd9b087e0acbeca502d586d49dd3e2f2 (patch) | |
tree | cbe3bef74cc112546580c50444d9c794776aa2ad /src/metrics.h | |
parent | fbe98f95a2ba75b2c849613e5868da3b37dccf56 (diff) | |
parent | a35bd3677f3848939e821505158a7dde8f2a7407 (diff) | |
download | Ninja-b022e789fd9b087e0acbeca502d586d49dd3e2f2.zip Ninja-b022e789fd9b087e0acbeca502d586d49dd3e2f2.tar.gz Ninja-b022e789fd9b087e0acbeca502d586d49dd3e2f2.tar.bz2 |
Merge pull request #441 from tfarina/missing-virtual
Add missing 'virtual' annotation to ReadFile() override.
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) \ |