- ©«¤l
- 145
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 190
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2013-10-18
- ³Ì«áµn¿ý
- 2014-3-29
|
Timer ¨ç¼Æ½d¨Ò
¥»½d¨Ò¨Ï¥Î Timer ¨ç¼Æ¨ÓÅýÀ³¥Îµ{¦¡¼È°±¡C½d¨Ò¤¤¦b¼È°±®É¨Ï¥Î¨ì DoEvents ¨Ó±Nµ{¦¡°õ¦æÅvÅýµ¹¨ä¥¦µ{¦¡¡C
Dim PauseTime, Start, Finish, TotalTime
If (MsgBox("Press Yes to pause for 5 seconds", 4)) = vbYes Then
PauseTime = 5 ' ³]©w¼È°±®É¶¡¡C
Start = Timer ' ³]©w¶}©l¼È°±ªº®É¨è¡C
Do While Timer < Start + PauseTime
DoEvents ' ±Nµ{¦¡°õ¦æÅvÅýµ¹¨ä¥¦µ{¦¡¡C
Loop
Finish = Timer ' Ū¨ú²{¦b®É¨è¡C
TotalTime = Finish - Start ' pºâ¼È°±©Ò¸g¹Lªº®É¶¡¡C
MsgBox "Paused for " & TotalTime & " seconds"
Else
End
End If |
|