Current section
Files
Jump to
Current section
Files
src/pocket_watch@ffi.erl
-module(pocket_watch@ffi).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/pocket_watch/ffi.gleam").
-export([elapsed/1]).
-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/pocket_watch/ffi.gleam", 3).
?DOC(false).
-spec elapsed(fun(() -> EBW)) -> {EBW, float()}.
elapsed(Fun) ->
pocket_watch_ffi:elapsed(Fun).