chaperon v0.1.0 Chaperon.Timing View Source
Timing related helper functions and type definitions used within Chaperon
.
Link to this section Summary
Functions
Returns the correct amount of milliseconds for a given amount of days
Returns the correct amount of milliseconds for a given amount of hours
Returns the correct amount of milliseconds for a given amount of minutes
Returns the correct amount of milliseconds for a given amount of seconds
Returns a timestamp with the given time unit
Returns the correct amount of milliseconds for a given amount of weeks
Link to this section Types
duration_number() :: non_neg_integer | float | Range.t
time_unit :: :seconds | :milli_seconds | :micro_seconds | :nano_seconds
Link to this section Functions
Returns the correct amount of milliseconds for a given amount of days.
Returns the correct amount of milliseconds for a given amount of hours.
Returns the correct amount of milliseconds for a given amount of minutes.
Returns the correct amount of milliseconds for a given amount of seconds.
timestamp(time_unit) :: non_neg_integer
Returns a timestamp with the given time unit.
Returns the correct amount of milliseconds for a given amount of weeks.