diff options
Diffstat (limited to 'opentrack-compat/timer.hpp')
-rw-r--r-- | opentrack-compat/timer.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/opentrack-compat/timer.hpp b/opentrack-compat/timer.hpp index f0741295..0bcb88a6 100644 --- a/opentrack-compat/timer.hpp +++ b/opentrack-compat/timer.hpp @@ -71,4 +71,8 @@ public: long elapsed_ms() const { return elapsed() / 1000000L; } + double elapsed_seconds() const + { + return elapsed() * 1e-9; + } }; |