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

Method Start

core/timer.go:39–50  ·  view source on GitHub ↗

Start starts the timer if not started already

()

Source from the content-addressed store, hash-verified

37
38// Start starts the timer if not started already
39func (m *Timer) Start() {
40 m.Lock()
41 defer m.Unlock()
42
43 m.wakeupAttemptsLeft = wakeupAttempts
44
45 if !m.started.IsZero() {
46 return
47 }
48
49 m.started = m.clck.Now()
50}
51
52// Reset resets the timer
53func (m *Timer) Stop() {

Callers 14

TestTimerFunction · 0.95
startWakeUpTimerMethod · 0.80
NewTelegramFromConfigFunction · 0.80
tronityAuthorizeFunction · 0.80
runOcppFunction · 0.80
StartProxyFunction · 0.80
TestConcurrentReadFunction · 0.80
TestReadCoilsFunction · 0.80
createControlboxFunction · 0.80
NewEaseeFunction · 0.80
TestConnectMethod · 0.80
TestAutoStartMethod · 0.80

Calls 3

LockMethod · 0.80
UnlockMethod · 0.80
IsZeroMethod · 0.45

Tested by 6

TestTimerFunction · 0.76
TestConcurrentReadFunction · 0.64
TestReadCoilsFunction · 0.64
TestConnectMethod · 0.64
TestAutoStartMethod · 0.64
TestTimeoutMethod · 0.64