Swiftpack.co - Package - wbarksdale/SwiftyTimer

SwiftyTimer

Do you need to time something in swift? Do you want it to run on Linux and on macOS. Thats what I needed, and thats why I made SwiftyTimer.

Usage

var myTimer: SwiftyTimer = SwiftyTimer()

myTimer.start()

// do some stuff

myTimer.stop()

print("stuff took \(myTimer.nanoseconds) nanoseconds to complete")
print("or if you prefer a more manageable unit, stuff took \(myTimer.milliseconds) milliseconds to complete")

Swift Package Manger

Add SwiftyTimer to your project by simply adding the following to your Package dependencies.

.package(url: "https://github.com/wbarksdale/SwiftyTimer.git", from: "0.1.0")

Github

link
Stars: 0
Help us keep the lights on

Dependencies

Used By

Total: 0

Releases

0.1.0 - Dec 30, 2017

this is the first release