From 82b004e82a50e18b9d1792185141eb51ca9d30a3 Mon Sep 17 00:00:00 2001 From: Krunoslav Zaher Date: Mon, 28 Sep 2015 21:37:25 +0200 Subject: [PATCH] Replaces value of iterations with alias. --- RxTests/PerformanceTests/main.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RxTests/PerformanceTests/main.swift b/RxTests/PerformanceTests/main.swift index f46c887e..53ce2b89 100644 --- a/RxTests/PerformanceTests/main.swift +++ b/RxTests/PerformanceTests/main.swift @@ -32,7 +32,7 @@ func measureTime(@noescape work: () -> ()) -> UInt64 { } let timeInNano = (mach_absolute_time() - start) * UInt64(timebaseInfo.numer) / UInt64(timebaseInfo.denom) - return approxValuePerIteration(timeInNano) / 1000 + return approxValuePerIteration(timeInNano) / UInt64(NumberOfIterations) } func measureMemoryUsage(@noescape work: () -> ()) -> (bytesAllocated: UInt64, allocations: UInt64) {