Fledex.Scheduler.TimeScale behaviour (Fledex_Scheduler v0.1.0)

View Source

Constrols time in Fledex.Scheduler, often used to speed up test runs, or implement custom timing loops.

Default implementation is Fledex.Scheduler.IdentityTimeScale.

Summary

Callbacks

Must return the current time in the specified timezone.

Must returns a float factor to speed up delays by.

Callbacks

now(time_zone)

@callback now(Calendar.time_zone()) :: DateTime.t()

Must return the current time in the specified timezone.

speedup()

@callback speedup() :: number()

Must returns a float factor to speed up delays by.