diff options
Diffstat (limited to 'facetracknoir/timer.hpp')
-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; + } }; |