All Manuals > LispWorks® User Guide and Reference Manual > 42 The MP Package

timer-expired-p Function

Summary

Returns t if a given timer has expired or is about to expire.

Package

mp

Signature

timer-expired-p timer &optional delta => bool

Arguments
timer
A timer.
delta
A non-negative real.
Values
bool
A boolean.
Description

The function timer-expired-p returns t if the specified timer is not scheduled to expire or is scheduled to expire within the number of seconds specified by delta after the call to timer-expired-p. Otherwise, the function returns nil.

timer is a timer, returned by make-timer or make-named-timer.

delta, if supplied, is a non-negative real number of seconds.

Examples
(setq timer
      (mp:make-timer 'print 10 *standard-output*))
#<Time Event : PRINT>
(mp:schedule-timer-relative timer 5)
#<Time Event : PRINT>
(mp:timer-expired-p timer)
NIL
See also

make-named-timer
make-timer
schedule-timer
schedule-timer-milliseconds
schedule-timer-relative
timer-name
unschedule-timer


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:51