Creates and returns a named timer.
mp
make-named-timer name function &rest arguments => timer
name⇩ |
A string or symbol. |
function⇩ |
A function. |
arguments⇩ |
A set of arguments to function. |
timer⇩ |
A timer. |
The function make-named-timer
creates and returns a named timer.
name is a string or symbol naming timer.
function is a function to be applied arguments when timer expires. Use the function schedule-timer or schedule-timer-relative to set an expiration time.
In comparison, the function make-timer creates an unnamed timer.
(setq timer (mp:make-named-timer 'timer-1 'print 10 *standard-output*))
#<Time Event TIMER-1 : PRINT>
make-timer
schedule-timer
schedule-timer-milliseconds
schedule-timer-relative
schedule-timer-relative-milliseconds
timer-expired-p
timer-name
unschedule-timer
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:51