Skip to content

Instantly share code, notes, and snippets.

@danie7k
Created October 18, 2019 09:28
Show Gist options
  • Save danie7k/e645b0351b7678c4043eb09ee3387f44 to your computer and use it in GitHub Desktop.
Save danie7k/e645b0351b7678c4043eb09ee3387f44 to your computer and use it in GitHub Desktop.
CFAbsoluteTime measuring
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