Skip to content

Commit

Permalink
๐Ÿ— :: [#20] ํƒ€์ด๋จธ ๋ฆฌํŽ™ํ† ๋ง
Browse files Browse the repository at this point in the history
  • Loading branch information
Eunho0922 committed Dec 27, 2023
1 parent 049f51f commit e801ae4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Sources/MindGymKit /MindGymKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ public class MindGaGymKitTimer: NSObject {
func stop() {
timer?.invalidate()
timer = nil

}

func restart() {
Expand All @@ -157,6 +156,10 @@ public class MindGaGymKitTimer: NSObject {
}

private func timeString(from counter: Double) -> String {

if counter == 0 {
stop()
}

let hours: String = String(format: "%02d", Int(counter / 3600))
let minutes: String = String(format: "%02d", Int(counter / 60))
Expand Down Expand Up @@ -196,4 +199,3 @@ public class MindGymTimerKit {
}

}

0 comments on commit e801ae4

Please sign in to comment.