diff --git a/Sources/MindGymKit /MindGymStopWatchKit.swift b/Sources/MindGymKit /MindGymStopWatchKit.swift new file mode 100644 index 0000000..94fb9a3 --- /dev/null +++ b/Sources/MindGymKit /MindGymStopWatchKit.swift @@ -0,0 +1,23 @@ +import UIKit +import RxSwift + +// MARK: - MindGymStopWatchKit +open class MindGymStopWatchKit { + public let mainStopwatch: TimerControl = Stopwatch() + + public func startTimer() { + mainStopwatch.start() + } + + public func stopTimer() { + mainStopwatch.stop() + } + + public func resetTimer() { + mainStopwatch.reset() + } + + public func recordTime() { + (mainStopwatch as? Stopwatch)?.record() + } +}