Common Lisp Timer

前端 未结 5 1798
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-20 03:08

I would like to start a timer in my common lisp application that after a certain amount of time it will call a certain method. What would be the best way to accomplish this? <

5条回答
  •  耶瑟儿~
    2021-02-20 03:53

    You could use CL's SLEEP, unless you need more precise timing (since SLEEP is permitted to use approximate timing.)

    In LispWorks, if more precise timing is needed, one could use LispWorks' timer scheduling interface.

    Note that, same as Zach Beane's TIMER, this is not implementation-agnostic.

提交回复
热议问题