Skip to content

Commit

Permalink
⚓️:: [#22] MindGymStopWatchKit 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jjunhaa0211 committed Dec 28, 2023
1 parent e499487 commit d83d6db
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Sources/MindGymKit /MindGymStopWatchKit.swift
Original file line number Diff line number Diff line change
@@ -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()
}
}

0 comments on commit d83d6db

Please sign in to comment.