TimingWheels.ticksToCatchUp

Number of ticks to rotate wheels until internal wheel 'now' catch up with real world realTime. Calculation based on time when wheels were stared and total numer of ticks pasded.

struct TimingWheels(T)
int
ticksToCatchUp
(
Duration tick
,
ulong realTime
)

Parameters

tick Duration

your tick length (Duration)

realTime ulong

current real world now (Clock.currStdTime)

Return Value

Type: int

ticks to advance so that we catch up real world current time

Meta