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

timer-name Accessor

Summary

Returns the name of a specified timer.

Package

mp

Signature

timer-name timer => name

setf (timer-name timer) name => name

Arguments
timer
A timer.
name
A string.
Values
name
A string.
Description

The accessor timer-name returns the name of timer, which is a timer returned by make-timer or make-named-timer. If timer has no name, timer-name returns nil.

The name of a timer created by either make-timer or make-named-timer can be set by:

(setf (mp:timer-name timer) name)
Examples
(setq timer
      (mp:make-timer 'print 10 *standard-output*))
#<Time Event : PRINT>
(mp:timer-name timer)
NIL
(setf (mp:timer-name timer) 'timer-1)
TIMER-1
(mp:timer-name timer)
TIMER-1
See also

make-named-timer
make-timer
schedule-timer
schedule-timer-milliseconds
schedule-timer-relative
timer-expired-p
unschedule-timer


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