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