更新时间:2023-02-19 19:17:32
关闭 10 秒计时器.
Set a 10 second timer off.
在计时器到期时触发事件.
Fire an event when the timer expires.
在事件处理程序中继续自动运行"部分.
In the event handler proceed with the "auto run" section.
如果用户在计时器到期之前点击了一个键,则终止线程.
If the user hits a key before the timer expires, kill the thread.
Timer
类页面 MSDN 上有一个等待设定时间的计时器示例.
The Timer
class page on MSDN has an example of a timer waiting for a set period.