To run the example project, clone the repo, and run pod install
from the Example directory first.
Overwatch is a singleton object on its own and provides two class methods to start and stop a timer.
To start a timer:
Overwatch.start(withName: "com.example.Overwatch.asyncTask")
and to stop a timer after a long running task:
Overwatch.stop(withName: "com.example.Overwatch.asyncTask")
Also stop method returns a TimeInterval
value to let the caller know about the duration that has passed.
Overwatch is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Overwatch', :configurations => ['Debug']
It's advised to add Overwatch to only Debug
configuration.
Ilter Cengiz, [email protected]
Overwatch is available under the MIT license. See the LICENSE file for more info.