Joken v2.2.0 Joken.CurrentTime behaviour View Source

Behaviour for fetching current time

Link to this section Summary

Callbacks

Returns the current time in seconds

Link to this section Callbacks

Link to this callback

current_time()

View Source
current_time() :: pos_integer()

Returns the current time in seconds

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