summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qcore_unix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qcore_unix.cpp b/src/corelib/kernel/qcore_unix.cpp
index b321518..28c1d9c 100644
--- a/src/corelib/kernel/qcore_unix.cpp
+++ b/src/corelib/kernel/qcore_unix.cpp
@@ -91,7 +91,7 @@ timeval qt_gettime()
uint64_t cpu_time = mach_absolute_time();
uint64_t nsecs = cpu_time * (info.numer / info.denom);
tv.tv_sec = nsecs / 1000000000ull;
- tv.tv_usec = (nsecs / 1000) - (t.tv_sec * 1000000);
+ tv.tv_usec = (nsecs / 1000) - (tv.tv_sec * 1000000);
return tv;
#elif (_POSIX_MONOTONIC_CLOCK-0 > 0)
timespec ts;