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

NextPrevUpTopContentsIndex

timer-name

Function
Summary

Returns the name of a specified timer.

Package

mp

Signature

timer-name timer => name

Signature

(setf timer-name) name timer => name

Arguments

timer

A timer

Values

name

A string

Description

The function timer-name returns the name of the specified timer . The timer argument is a timer returned by make-timer or make-named-timer. If the 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 means of the following syntax:

(setf (mp:timer-name timer) name)
Example
(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 - 21 Dec 2011

NextPrevUpTopContentsIndex