()
| 58 | } |
| 59 | |
| 60 | func (m *Timer) Running() bool { |
| 61 | m.Lock() |
| 62 | defer m.Unlock() |
| 63 | |
| 64 | return !m.started.IsZero() |
| 65 | } |
| 66 | |
| 67 | // Elapsed checks if the timer has elapsed and if resets its status |
| 68 | func (m *Timer) Elapsed() WakeUpEvent { |
no test coverage detected