From b7cdca615db89454b0f742fe603f723ce5ed7c29 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 23 Jan 2015 11:25:56 +0100 Subject: Use CLOCK_MONOTONIC instead of gettimeofday gettimeofday is not a suitable clock for measuring intervals, because it can jump. --- src/dabOutput/dabOutput.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dabOutput/dabOutput.h') diff --git a/src/dabOutput/dabOutput.h b/src/dabOutput/dabOutput.h index 6048d51..108fd3d 100644 --- a/src/dabOutput/dabOutput.h +++ b/src/dabOutput/dabOutput.h @@ -244,7 +244,7 @@ class DabOutputSimul : public DabOutput #ifdef _WIN32 DWORD startTime_; #else - timeval startTime_; + struct timespec startTime_; #endif }; -- cgit v1.2.3