summaryrefslogtreecommitdiffstats
path: root/include/ingen/Clock.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/ingen/Clock.hpp')
-rw-r--r--include/ingen/Clock.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ingen/Clock.hpp b/include/ingen/Clock.hpp
index 6a966701..9e20a031 100644
--- a/include/ingen/Clock.hpp
+++ b/include/ingen/Clock.hpp
@@ -48,8 +48,8 @@ private:
uint64_t now_microseconds() const {
struct timespec time{};
clock_gettime(_clock, &time);
- return static_cast<uint64_t>(time.tv_sec) * 1000000U +
- static_cast<uint64_t>(time.tv_nsec) / 1000U;
+ return (static_cast<uint64_t>(time.tv_sec) * 1000000U) +
+ (static_cast<uint64_t>(time.tv_nsec) / 1000U);
}
private: