diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-09-24 17:54:28 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-09-24 17:54:28 +0200 |
commit | e41e19fb072caf7598f18b5244b4d32c10eed161 (patch) | |
tree | b0f96a3f493da6eb0547e644bf36fe09481d01c0 | |
parent | 6c7f296a3dd11be3612af0e172280712ba8028a8 (diff) |
timer: convert to ms on demand
-rw-r--r-- | facetracknoir/timer.hpp | 3 |
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; + } }; |