mirror of
https://github.com/tsolomko/SWCompression.git
synced 2026-06-23 14:56:41 +00:00
[swcomp] Flush stdout after printing iteration number
This commit is contained in:
@@ -42,6 +42,7 @@ extension BenchmarkCommand {
|
||||
_ = try benchmarkFunction(fileData)
|
||||
for i in 1...10 {
|
||||
print(String(format: "Iteration %02u: ", i), terminator: "")
|
||||
fflush(__stdoutp)
|
||||
let startTime = CFAbsoluteTimeGetCurrent()
|
||||
_ = try benchmarkFunction(fileData)
|
||||
let timeElapsed = CFAbsoluteTimeGetCurrent() - startTime
|
||||
|
||||
@@ -65,7 +65,7 @@ class TarCommand: Command {
|
||||
case .pax:
|
||||
print("TAR format: PAX")
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user