Created
October 8, 2020 06:13
-
-
Save chaitanyaSoni96/d537d38333e8bb9f245d242c3ebf02fe to your computer and use it in GitHub Desktop.
Measuring execution speed
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 = CFAbsoluteTimeGetCurrent() | |
// run your work | |
let diff = CFAbsoluteTimeGetCurrent() - start | |
print("Took \(diff) seconds") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment