I need a way to pause for like 1 second at the end of while loop....does anyone have any idea how to do this???
Printable View
I need a way to pause for like 1 second at the end of while loop....does anyone have any idea how to do this???
There is no Sleep function somewhere hidden in C#?
Yes, that's sleep.
100 Milliseconds don't make a second. Try 1000.
Sometimes you might not want to Sleep for a second. Sometimes you just want to sleep enough not to tax the processor, which is usually 100ms or lower.