Tapper v0.2.0 Tapper.Timestamp

Timestamp support functions.

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

Types

microseconds_timestamp()
microseconds_timestamp() :: integer
native_timestamp()
native_timestamp() :: integer
offset()
offset() :: integer

Functions

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

Calculate the different between two timestamp, in microseconds.

instant()
instant() :: t

Produce a high-resolution timestamp for this very instant, compatible with the Tapper API.

to_absolute(timestamp)
to_absolute(t :: t) :: microseconds_timestamp

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