Tapper v0.4.1 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
Link to this type
microseconds_timestamp()
View Source
microseconds_timestamp()
View Source
microseconds_timestamp() :: integer()
microseconds_timestamp() :: integer()
Link to this type
native_timestamp()
View Source
native_timestamp()
View Source
native_timestamp() :: integer()
native_timestamp() :: integer()
Link to this type
offset()
View Source
offset()
View Source
offset() :: integer()
offset() :: integer()
Link to this type
t()
View Source
t()
View Source
t() :: {native_timestamp(), offset()}
t() :: {native_timestamp(), offset()}
Link to this section Functions
Link to this function
duration(t1, t2)
View Source
duration(t1, t2)
View Source
duration(t1 :: t(), t2 :: t()) :: microseconds_timestamp()
duration(t1 :: t(), t2 :: t()) :: microseconds_timestamp()
Calculate the different between two timestamp, in microseconds.
Link to this function
instant()
View Source
instant()
View Source
instant() :: t()
instant() :: t()
Produce a high-resolution timestamp for this very instant, compatible with the Tapper API.
Link to this function
to_absolute(timestamp)
View Source
to_absolute(timestamp)
View Source
to_absolute(t :: t()) :: microseconds_timestamp()
to_absolute(t :: t()) :: microseconds_timestamp()
Convert the timestamp to an absolute time, in microseconds since the epoch.