summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/tools/qelapsedtimer_win.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/corelib/tools/qelapsedtimer_win.cpp b/src/corelib/tools/qelapsedtimer_win.cpp
index c7c160d..c77acaa 100644
--- a/src/corelib/tools/qelapsedtimer_win.cpp
+++ b/src/corelib/tools/qelapsedtimer_win.cpp
@@ -79,7 +79,7 @@ static void resolveLibs()
done = true;
}
-static qint64 ticksToMilliseconds(qint64 ticks)
+static inline qint64 ticksToMilliseconds(qint64 ticks)
{
if (counterFrequency > 0) {
// QueryPerformanceCounter uses an arbitrary frequency
@@ -122,11 +122,10 @@ QElapsedTimer::ClockType QElapsedTimer::clockType()
{
resolveLibs();
- if (counterFrequency > 0) {
+ if (counterFrequency > 0)
return PerformanceCounter;
- } else {
+ else
return TickCounter;
- }
}
bool QElapsedTimer::isMonotonic()