Some api's are processed in background, for instance bitblt, and it can be really annoying if you use autoredraw. There's no real way to determine how long you'll have to wait.