diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-15 14:28:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-15 14:28:16 +0100 |
| commit | dc17395f3a4c19f5eea2590f1d2904e88365c67a (patch) | |
| tree | c7d5a99ee538483b948b756bdf7bcbfbbb62ae2a /src/metric_time.cc | |
| parent | 44a5e000d62230451cc35a239c7c3ba83d830bd7 (diff) | |
Add scale functions to time classes.
Diffstat (limited to 'src/metric_time.cc')
| -rw-r--r-- | src/metric_time.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/metric_time.cc b/src/metric_time.cc index 72299d3..4fad390 100644 --- a/src/metric_time.cc +++ b/src/metric_time.cc @@ -86,6 +86,12 @@ MetricTime::add (MetricTime t) _ms += t._ms; } +void +MetricTime::scale (float f) +{ + _ms *= f; +} + bool sub::operator== (MetricTime const & a, MetricTime const & b) { |
