diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2014-09-24 17:54:28 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-09-24 19:33:34 +0200 |
| commit | cdbb9238b898369e778f546272ed563636f1fdb0 (patch) | |
| tree | 6425b9e5d2f09126a715917872d0409eca268579 | |
| parent | a12fe2ca53136a6c9f978ae82fc203f8557f2a59 (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; + } }; |
