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

Method GetPlanRequiredDuration

core/loadpoint_plan.go:75–79  ·  view source on GitHub ↗

GetPlanRequiredDuration is the estimated total charging duration

(goal, maxPower float64)

Source from the content-addressed store, hash-verified

73
74// GetPlanRequiredDuration is the estimated total charging duration
75func (lp *Loadpoint) GetPlanRequiredDuration(goal, maxPower float64) time.Duration {
76 lp.RLock()
77 defer lp.RUnlock()
78 return lp.getPlanRequiredDuration(goal, maxPower)
79}
80
81// getPlanRequiredDuration is the estimated total charging duration
82func (lp *Loadpoint) getPlanRequiredDuration(goal, maxPower float64) time.Duration {

Callers 2

plannerActiveMethod · 0.95

Calls 3

RLockMethod · 0.95
RUnlockMethod · 0.95