suspend; sleep(1000*60); resume; 我这样写可以吗? sleep是让其线程睡眠还是整个程序都睡眠呀? Sleep pauses program executions as specified by the millseconds parameter. Under Windows, Sleep is just a link to the Sleep function in the system API. Under Linux, Sleep calls the usleep library routine. 如果让program pause 就不好了。
Cardinal 范围0..4294967295
1000多个小时不够吗?
TTimer有那么长吗? 莫非我看错了?见笑了
sleep(1000*60);
resume;
我这样写可以吗?
sleep是让其线程睡眠还是整个程序都睡眠呀?
Sleep pauses program executions as specified by the millseconds parameter. Under Windows, Sleep is just a link to the Sleep function in the system API. Under Linux, Sleep calls the usleep library routine.
如果让program pause 就不好了。
class(TThread).Resume ;
但不要忘了它是静态的方法!
Thread.sleep(int);