Current section
Files
Jump to
Current section
Files
src/glimit@utils.erl
-module(glimit@utils).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/glimit/utils.gleam").
-export([now/0]).
-if(?OTP_RELEASE >= 27).
-define(MODULEDOC(Str), -moduledoc(Str)).
-define(DOC(Str), -doc(Str)).
-else.
-define(MODULEDOC(Str), -compile([])).
-define(DOC(Str), -compile([])).
-endif.
?MODULEDOC(false).
-file("src/glimit/utils.gleam", 8).
?DOC(false).
-spec now() -> integer().
now() ->
{Megaseconds, Seconds, _} = os:timestamp(),
(Megaseconds * 1000000) + Seconds.