BuildkiteTestCollector.Duration (buildkite_test_collector v0.3.1)
The difference between two instants with microsecond accuracy.
The Buildkite analytics API stores all times as decimal seconds since the
start of the test run. Therefore we use Duration
to calculate the span
between two Instant
values.
Summary
Functions
Return the absolute duration (ie make the duration unsigned).
The duration of the timing, in (fractional) seconds.
Return the elapsed time between two instants.
Returns the elapsed duration between instant
and now.
Create a new duration directly from microseconds.
Create a new duration from the specified number of seconds.
Types
@type t() :: %BuildkiteTestCollector.Duration{usec: integer()}
Functions
Return the absolute duration (ie make the duration unsigned).
The duration of the timing, in (fractional) seconds.
@spec between(BuildkiteTestCollector.Instant.t(), BuildkiteTestCollector.Instant.t()) :: t()
Return the elapsed time between two instants.
@spec elapsed(BuildkiteTestCollector.Instant.t()) :: t()
Returns the elapsed duration between instant
and now.
Create a new duration directly from microseconds.
Create a new duration from the specified number of seconds.