Next Previous Up Top Contents Index

13 The MP Package

timer-expired-p

Function

Summary

Returnst if a given timer has expired or is about to expire.
Signature

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

Package

mp

Arguments

timer

A timer

delta

A non-negative real

Values

bool

A boolean

Description

Thetimer-expired-p function returnst if the specified timer is not scheduled to expire or is scheduled to expire within the number of seconds specified by the delta argument after the call totimer-expired-p. Otherwise, the function returnsnil.
The timer argument is a timer, returned by make-timer or make-named-timer. The delta argument, if supplied, is a non-negative real number of seconds.
Example

(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 Reference Manual - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker