Tapper v0.6.2 Tapper.Timestamp View Source
Timestamp support functions.
Link to this section Summary
Functions
Calculate the different between two timestamp, in microseconds.
Produce a high-resolution timestamp for this very instant, compatible with the Tapper API.
Convert the timestamp to an absolute time, in microseconds since the epoch.
Link to this section Types
Specs
microseconds_timestamp() :: integer()
Specs
native_timestamp() :: integer()
Specs
offset() :: integer()
Specs
t() :: {native_timestamp(), offset()}
Link to this section Functions
Specs
duration(t1 :: t(), t2 :: t()) :: microseconds_timestamp()
Calculate the different between two timestamp, in microseconds.
Specs
instant() :: t()
Produce a high-resolution timestamp for this very instant, compatible with the Tapper API.
Specs
to_absolute(t :: t()) :: microseconds_timestamp()
Convert the timestamp to an absolute time, in microseconds since the epoch.