# `Explorer.Duration`
[🔗](https://github.com/elixir-nx/explorer/blob/v0.12.0/lib/explorer/duration.ex#L1)

Represents a duration of time.

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

* `:millisecond`
* `:microsecond`
* `:nanosecond`

# `precision`

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

# `t`

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

# `to_string`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
