English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2007-03-17 16:16:01 · 2 answers · asked by Anonymous in Computers & Internet Hardware Other - Hardware

2 answers

Depends if you need to respond during the delay:
Sleep(n) is a Windows API call that suspends operations for n milliseconds. If you need to respond during the wait, you might use a loop and sleep 10 ms at a time, then process waiting messages.
Create a timer object or use WinAPI calls to use the system timer or MMTimer (accurate to a few ms). A timer object can be considered a separate thread, so you can still respond to input.

2007-03-17 16:27:01 · answer #1 · answered by Anonymous · 0 0

Create a loop.
For I =1 to 1000000
Next I

2007-03-17 23:20:14 · answer #2 · answered by Joey 2 · 0 0

fedest.com, questions and answers