定时函数
1、CPU()
功 能:得到自当前应用程序启动后开始CPU所消耗的时间,以毫秒为单位。
语 法:CPU()
返回值:Long。返回自当前应用程序启动后开始CPU所消耗的时间,以毫秒为单位。
示 例:These statements determine the amount of CPU time that elapsed while a group of statements executed:
// Declare ll_start and ll_used as long integers.
long ll_start, ll_used
// Set the start equal to the current CPU usage.
ll_start = Cpu()
... // Executable statements being timed
// Set ll_used to the number of CPU seconds
// that were used (current CPU time - start).
ll_used = Cpu() - ll_start
2、Idle()
功 能:该函数在用户每次活动(例如,按键盘、移动鼠标等)后重置定时器,n秒后触发应用对象的Idle事件