Created
November 18, 2017 15:48
-
-
Save chriswill0w/df6041c960604b00f231388e002bcd64 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let start = DispatchTime.now() | |
let end = DispatchTime.now() | |
let nanoTime = end.uptimeNanoseconds - start.uptimeNanoseconds // Difference in nano seconds (UInt64) | |
let timeInterval = Double(nanoTime) / 1_000_000_000 // Could overflow for long running tests | |
LogInfo("Time to generate pdf data: \(timeInterval) seconds") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment