diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-10-06 13:29:36 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-10-06 13:29:36 +0100 |
| commit | 4ada3e7583dfdc658dbebca3c3603be1e3477c12 (patch) | |
| tree | 0516fdd142b79e7083ed3d455fe45fffce26a9a8 /src/metric_time.h | |
| parent | 86440b2afe0a2b83a7e810f37b1f65dbddee90e8 (diff) | |
Template-ize collect so that any container can be used.
Add new vertical reference of TOP_OF_SUBTITLE, and use references
with line numbers as well as proportional specifiers.
Add a couple of methods to MetricTime.
Diffstat (limited to 'src/metric_time.h')
| -rw-r--r-- | src/metric_time.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/metric_time.h b/src/metric_time.h index 86c1923..404464e 100644 --- a/src/metric_time.h +++ b/src/metric_time.h @@ -42,6 +42,14 @@ public: int seconds () const; int milliseconds () const; + double all_as_seconds () const { + return all_as_milliseconds() / 1000.0; + } + + int64_t all_as_milliseconds () const { + return _ms; + } + void add (MetricTime t); void scale (float f); |
