View Source Explorer.Duration (Explorer v0.8.3)

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

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

Functions