From 3e4c6f2977d8a5515229c79d969392de3cafbb4b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 16 May 2016 12:33:44 +0200 Subject: compat/timer: add elapsed_seconds method --- opentrack-compat/timer.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'opentrack-compat') 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; + } }; -- cgit v1.2.3