summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/kernel/qelapsedtimer_win.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/corelib/kernel/qelapsedtimer_win.cpp b/src/corelib/kernel/qelapsedtimer_win.cpp
index 0c380b2f6a..54a14e690c 100644
--- a/src/corelib/kernel/qelapsedtimer_win.cpp
+++ b/src/corelib/kernel/qelapsedtimer_win.cpp
@@ -83,10 +83,9 @@ static inline qint64 nanosecondsToTicks(qint64 nsec)
if (counterFrequency > 0) {
// QueryPerformanceCounter uses an arbitrary frequency
return double(nsec) * counterFrequency / 1000000000.;
- } else {
- // GetTickCount(64) uses milliseconds
- return nsec / 1000000;
}
+ // GetTickCount(64) uses milliseconds
+ return nsec / 1000000;
}
static quint64 getTickCount()