Replaces value of iterations with alias.

This commit is contained in:
Krunoslav Zaher 2015-09-28 21:37:25 +02:00
parent 85bed326b8
commit 82b004e82a
1 changed files with 1 additions and 1 deletions

View File

@ -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) {