1. 什么是ticks
我们来看一下手册上面对ticks的解释:
A tick is an event that occurs for every N low-level statements executed by the parser within the declare block. The value for N is specified using ticks=N within the declare block's directive section.
总结一下:
- tick是一个事件
- tick事件在每执行N条low-level statements就会放生一次,N由declare语句指定
- 可以用register_tick_function()来指定时间的handler,unregister_tick_function()与之对应
至于什么是low-level statement