summaryrefslogtreecommitdiffhomepage
path: root/opentrack
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack')
-rw-r--r--opentrack/timer.hpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/opentrack/timer.hpp b/opentrack/timer.hpp
index 93c0a1f4..1b52b6c8 100644
--- a/opentrack/timer.hpp
+++ b/opentrack/timer.hpp
@@ -51,12 +51,8 @@ public:
Timer() {
start();
}
- long start() {
- struct timespec cur;
- (void) clock_gettime(CLOCK_MONOTONIC, &cur);
- long ret = conv(cur);
- state = cur;
- return ret;
+ void start() {
+ (void) clock_gettime(CLOCK_MONOTONIC, &state);
}
long elapsed() {
struct timespec cur;