|Did you know ...||Search Documentation:|
|library(time): Time and alarm library|
library(time) provides timing and alarm functions.
Alarms are thread-specific, i.e., creating an alarm causes the alarm
goal to be called in the thread that created it. The predicate current_alarm/4
only reports alarms that are related to the calling thread. If a thread
terminates, all remaining alarms are silently removed. Most applications
Options is a list of Name(Value) options. Currently defined options are:
install(false)option or de-activated using uninstall_alarm/1. With a given RelTime, the alarm is scheduled at the RelTime from now. Otherwise it is scheduled on the same (absolute) time on which is was created.
doneif the alarm has been fired,
nextif the event is the next to be executed and
time_limit_exceededis raised. call_with_time_limit/3 throws
time_limit_exceeded(Context). Goal is called as in once/1.