MCPcopy Create free account
hub / github.com/evcc-io/evcc / Running

Method Running

core/timer.go:60–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58}
59
60func (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
68func (m *Timer) Elapsed() WakeUpEvent {

Callers 1

stopWakeUpTimerMethod · 0.80

Calls 3

LockMethod · 0.80
UnlockMethod · 0.80
IsZeroMethod · 0.45

Tested by

no test coverage detected