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() :: integer()

Link to this type

native_timestamp() View Source
native_timestamp() :: integer()

Link to this section Functions

Link to this function

duration(t1, t2) View Source
duration(t1 :: t(), t2 :: t()) :: microseconds_timestamp()

Calculate the different between two timestamp, in microseconds.

Link to this function

instant() View Source
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(t :: t()) :: microseconds_timestamp()

Convert the timestamp to an absolute time, in microseconds since the epoch.