diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-01-23 11:25:56 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-01-23 11:25:56 +0100 |
commit | b7cdca615db89454b0f742fe603f723ce5ed7c29 (patch) | |
tree | c6d66a80b4552c30bff7c13d4623e3bc63a08320 /src/dabOutput/dabOutput.h | |
parent | 86a147ba46aad4516913ba7b5ad7d37d79422a04 (diff) | |
download | dabmux-b7cdca615db89454b0f742fe603f723ce5ed7c29.tar.gz dabmux-b7cdca615db89454b0f742fe603f723ce5ed7c29.tar.bz2 dabmux-b7cdca615db89454b0f742fe603f723ce5ed7c29.zip |
Use CLOCK_MONOTONIC instead of gettimeofday
gettimeofday is not a suitable clock for measuring intervals,
because it can jump.
Diffstat (limited to 'src/dabOutput/dabOutput.h')
-rw-r--r-- | src/dabOutput/dabOutput.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 }; |