View Source Explorer.Duration (Explorer v0.10.1)

Represents a duration of time.

The value is represented by an integer, and the precision can be one of the following:

  • :millisecond
  • :microsecond
  • :nanosecond

Summary

Types

precision()

@type precision() :: :millisecond | :microsecond | :nanosecond

t()

@type t() :: %Explorer.Duration{precision: precision(), value: integer()}

Functions

to_string(duration)