summaryrefslogtreecommitdiff
path: root/src/metric_time.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/metric_time.cc')
-rw-r--r--src/metric_time.cc6
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)
{