A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.lispworks.com/documentation/lw71/LW/html/lw-1084.htm below:

schedule-timer

Description

The function schedule-timer schedules a timer to expire at a given time after the start of the program. The timer argument is a timer, returned by make-timer or make-named-timer. The absolute-expiration-time argument is a non-negative real number of seconds since the start of the program at which the timer is to expire. If repeat-time is specified, it is a non-negative real number of seconds that specifies a repeat interval. Each time the timer expires, it is rescheduled to expire after this repeat interval.

If the timer is already scheduled to expire at the time this function is called, it is rescheduled to expire at the time specified by the absolute-expiration-time argument. If that argument is nil, the timer is not rescheduled, but the repeat interval is set to the interval specified by the repeat-time argument.

The function schedule-timer-relative schedules a timer to expire at a time relative to the call to that function.

Example

The following example schedules a timer to expire 15 minutes after the start of the program and every 5 minutes thereafter.

(setq timer
      (mp:make-timer 'print 10 *standard-output*))
#<Time Event : PRINT> (mp:schedule-timer timer 900 300) #<Time Event : PRINT>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4