Bedrock.Internal.Time (bedrock v0.5.3)
View SourceUtility functions for retrieving the current system time in various formats.
Summary
Functions
Return the elapsed time in milliseconds since the given (monotonic) start time.
Return the current system monotic time in milliseconds.
Return the current system time (UTC).
Return the current system time in milliseconds.
Functions
@spec elapsed_monotonic_in_ms(Bedrock.timestamp_in_ms()) :: Bedrock.timestamp_in_ms()
Return the elapsed time in milliseconds since the given (monotonic) start time.
@spec monotonic_now_in_ms() :: Bedrock.timestamp_in_ms()
Return the current system monotic time in milliseconds.
@spec now() :: DateTime.t()
Return the current system time (UTC).
@spec now_in_ms() :: Bedrock.timestamp_in_ms()
Return the current system time in milliseconds.