Just recently, I needed to implement a pause or delay loop in a Visual Basic 6 program.
Being lazy, my first instinct was just to do a for-next loop with a DoEvents in the middle. But this gave different results on different machines, which wasn’t what I was looking for.
The I tried using the Sleep API call.