summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-09-24 17:54:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-09-24 17:54:28 +0200
commite41e19fb072caf7598f18b5244b4d32c10eed161 (patch)
treeb0f96a3f493da6eb0547e644bf36fe09481d01c0
parent6c7f296a3dd11be3612af0e172280712ba8028a8 (diff)
timer: convert to ms on demand
-rw-r--r--facetracknoir/timer.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/facetracknoir/timer.hpp b/facetracknoir/timer.hpp
index d2df1efd..8eb6b943 100644
--- a/facetracknoir/timer.hpp
+++ b/facetracknoir/timer.hpp
@@ -62,4 +62,7 @@ public:
(void) clock_gettime(CLOCK_MONOTONIC, &cur);
return conv(cur);
}
+ long elapsed_ms() {
+ return elapsed() / 1000000L;
+ }
};