Klotho (klotho v0.2.0)

Copy Markdown

A module that provides a interface to Erlang's time functions.

In production, all functions are proxied to the :erlang module directly.

In tests, the functions are proxied to Klotho.Mock, and the time "flow" can be controlled by calling Klotho.Mock functions.

Summary

Functions

cancel_timer(ref)

cancel_timer(ref, opts)

monotonic_time()

monotonic_time(unit)

read_timer(ref)

send_after(time, pid, message)

send_after(time, pid, message, opts)

set_backend(backend)

start_timer(time, pid, message)

start_timer(time, pid, message, opts)

system_time()

system_time(unit)

time_offset()

time_offset(unit)