Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/stdlib/src/timer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ finished or not.
> started in intervals of 1ms, which would result in 1,000,000 processes running
> at the same time, far more than a node started with default settings allows
> (see the
> [System Limits section in the Effiency Guide](`e:system:system_limits.md`)).
> [System Limits section in the Efficiency Guide](`e:system:system_limits.md`)).
""".
-spec apply_interval(Time, Module, Function, Arguments) ->
{'ok', TRef} | {'error', Reason}
Expand Down Expand Up @@ -562,7 +562,7 @@ sleep(T) ->
-doc(#{equiv => tc(Fun, microsecond)}).
-doc(#{since => ~"OTP R14B03"}).
-spec tc(Fun) -> {Time, Value}
when Fun :: function(),
when Fun :: fun(() -> term()),
Time :: integer(),
Value :: term().
tc(F) ->
Expand All @@ -583,12 +583,12 @@ Measures the execution time of `Fun` in `TimeUnit` if called as `tc(Fun, TimeUni
""".
-doc #{ since => ~"OTP R14B" }.
-spec tc(Fun, Arguments) -> {Time, Value}
when Fun :: function(),
when Fun :: fun((...) -> term()),
Arguments :: [term()],
Time :: integer(),
Value :: term();
(Fun, TimeUnit) -> {Time, Value}
when Fun :: function(),
when Fun :: fun(() -> term()),
TimeUnit :: erlang:time_unit(),
Time :: integer(),
Value :: term().
Expand Down Expand Up @@ -621,7 +621,7 @@ Equivalent to [`tc(erlang, apply, [Fun, Arguments], TimeUnit)`](`tc/4`) if calle
Time :: integer(),
Value :: term();
(Fun, Arguments, TimeUnit) -> {Time, Value}
when Fun :: function(),
when Fun :: fun((...) -> term()),
Arguments :: [term()],
TimeUnit :: erlang:time_unit(),
Time :: integer(),
Expand Down
Loading