View Source Joken.CurrentTime behaviour (Joken v2.6.0)

Behaviour for fetching current time.

Link to this section Summary

Callbacks

Returns the current time in seconds.

Link to this section Callbacks

@callback current_time() :: pos_integer()

Returns the current time in seconds.

This is used for applications that want to control time for testing.