Copyright (C) 2000-2012 |
GNU Info (librep.info)TimersAsynchronous Timers =================== The `rep.io.timers' module (Note: Modules) allows a Lisp program to create multiple asynchronous timers, each of which is primed to call a specified function after a specified period of time. These functions only work when the Lisp event loop is being used (i.e. at least one `recursive-edit' is currently in progress). - Function: make-timer function #!optional seconds milliseconds Create and return a new timer object. It will be set to call the Lisp function FUNCTION after SECONDS seconds plus MILLISECONDS milliseconds. FUNCTION will be called with a single argument, the timer object that has just fired. If both SECONDS and MILLISECONDS are undefined, or zero, the timer will be created but won't call FUNCTION. After the time interval has passed, and FUNCTION has been called, the timer _will not_ be restarted. Use the `set-timer' function to reset it. - Function: delete-timer timer Prevent the timer object TIMER from calling the Lisp function associated with it. Use the `set-timer' function to reset it. - Function: set-timer timer #!optional seconds milliseconds Reset the timer object TIMER. If either/both of SECONDS and MILLISECONDS are defined the interval of the timer will be set to the specified time period. If neither are defined then the current interval of the timer is preserved. automatically generated by info2www version 1.2.2.9 |