 
         delegate?.timerDidResume?()
     }
+    
+    /**
+     * End the timer
+     */
+    public func end() {
+        self.currentCounterValue = 0
+        timer?.invalidate()
+        
+        delegate?.timerDidEnd?()
+    }
 }

                    self.currentCounterValue = computedCounterValue
                }
            } else {
                self.currentCounterValue = 0
                timer.invalidate()
            }
        }
        RunLoop.main.add(timer!, forMode: .defaultRunLoopMode)

    @objc optional func timerDidStart()
    @objc optional func timerDidPause()
    @objc optional func timerDidResume()
    @objc optional func timerDidEnd()
}

public class SRCountdownTimer: UIView {
