Versions in this module Expand all Collapse all v0 v0.1.4 Dec 6, 2025 v0.1.3 Dec 6, 2025 Changes in this version + func FormatDuration(d time.Duration) string + func FormatDurationShort(d time.Duration) string + type Manager struct + func NewManager() *Manager + func (m *Manager) ActiveCount() int + func (m *Manager) Add(timer *Timer) + func (m *Manager) Clear() + func (m *Manager) Count() int + func (m *Manager) GetActive() []*Timer + func (m *Manager) GetExpired() []*Timer + func (m *Manager) Remove(id string) + type Timer struct + Duration time.Duration + ID string + Label string + StartTime time.Time + func NewTimer(duration time.Duration, label string) *Timer + func (t *Timer) Elapsed() time.Duration + func (t *Timer) IsExpired() bool + func (t *Timer) PercentComplete() float64 + func (t *Timer) Remaining() time.Duration