ot::MeshCoP::DelayTimerTlv::CalculateRemainingDelay() method
Calculates the remaining delay in milliseconds, based on the value read from a Delay Timer TLV and the specified update time. Ensures that the calculated delay does not exceed `kMaxDelay`. Also accounts for time already elapsed since @p aUpdateTime. Caller MUST ensure that @p aDelayTimerTlv is a Delay Timer TLV, otherwise behavior is undefined.
Arguments
aDelayTimerTlv
The delay timer TLV to read delay from.
Return value
The remaining delay (in msec).
ot::MeshCoP::DelayTimerTlv::CalculateRemainingDelay() calls 2 functions:
![]()
ot::MeshCoP::DelayTimerTlv::CalculateRemainingDelay()
ot::MeshCoP::DelayTimerTlv::CalculateRemainingDelay() reads 1 variable:
![]()
ot::MeshCoP::DelayTimerTlv::CalculateRemainingDelay()