Created
May 18, 2015 12:00
-
-
Save NeoTeo/30ba81e95ecfd73fe3fd to your computer and use it in GitHub Desktop.
Time code execution in Swift.
This file contains hidden or 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 methodStart = NSDate() | |
| /* ... Do whatever you need to do ... */ | |
| let methodFinish = NSDate() | |
| let executionTime = methodFinish.timeIntervalSinceDate(methodStart) | |
| println("executionTime = \(executionTime)") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment