Packages

A Gleam client for Valkey, KeyDB, Redis, Dragonfly and other Redis-compatible databases.

Current section

Files

Jump to
valkyrie src valkyrie_ffi.erl
Raw

src/valkyrie_ffi.erl

-module(valkyrie_ffi).
-export([monotonic_now/0]).
monotonic_now() ->
StartTime = erlang:system_info(start_time),
CurrentTime = erlang:monotonic_time(),
Difference = CurrentTime - StartTime,
erlang:convert_time_unit(Difference, native, nanosecond).