barrel_p2p_hlc (barrel_p2p v0.1.0)

View Source

Summary

Types

timestamp/0

-type timestamp() :: #timestamp{wall_time :: term(), logical :: term()}.

Functions

compare(Timestamp, _)

-spec compare(timestamp(), timestamp()) -> lt | eq | gt.

from_binary(_)

-spec from_binary(binary()) -> timestamp().

handle_call(Request, From, State)

handle_cast(Msg, State)

init(_)

logical(Timestamp)

-spec logical(timestamp()) -> non_neg_integer().

now()

-spec now() -> timestamp().

pack(Timestamp)

-spec pack(timestamp()) -> non_neg_integer().

start_link()

terminate(Reason, State)

to_binary(Timestamp)

-spec to_binary(timestamp()) -> binary().

update(Remote)

-spec update(timestamp()) -> timestamp().

wall_time(Timestamp)

-spec wall_time(timestamp()) -> non_neg_integer().