Andrew-Dunn / SwiftHighResolutionTimer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SwiftHighResolutionTimer

This package allows for simple timing. It tells you how many seconds have elapsed since the timer was set with very high accuracy.

Example

let timer = HighResolutionTimer()
// Set the timer.
timer.mark()

// Do something.

print("\(timer.check()) seconds elapsed.")

About


Languages

Language:Swift 100.0%