16 library(time): Time and alarm library
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
Packages
SWI-Prolog C-library
library(time): Time and alarm library
alarm/3
alarm/4
alarm_at/3
alarm_at/4
install_alarm/1
install_alarm/2
uninstall_alarm/1
remove_alarm/1
current_alarm/4
call_with_time_limit/2
call_with_time_limit/3
Availability:
:- use_module(
library(time)
).
(can be autoloaded)
[det]
call_with_time_limit
(
+Time, :Goal
)
[det]
call_with_time_limit
(
+Time, :Goal, +Context
)
Call
Goal
, while watching out for a (wall-time) limit. If this limit is exceeded, the exception
time_limit_exceeded
is raised.
call_with_time_limit/3
throws
time_limit_exceeded(Context)
.
Goal
is called as in
once/1
.
throws
time_limit_exceeded
(
call_with_time_limit/2
) or
time_limit_exceeded(Context)
(
call_with_time_limit/3
).