timer
timer
Module
timer
Module summary
Timer functions.
Description
This module provides useful functions related to time. Unless otherwise stated, time is always measured in milliseconds. All timer functions return immediately, regardless of work done by another process.
Successful evaluations of the timer functions give return values containing a timer reference, denoted TRef
. By using cancel/1
, the returned reference can be used to cancel any requested action. A TRef
is an Erlang term, which contents must not be changed.
The time-outs are not exact, but are at least as long as requested.
Data types
time() = integer() >= 0
Time in milliseconds.
登录查看完整内容