Programming Journal C#, Java, SQL and to a lesser extent HTML, CSS, XML, and regex. I made this so other programmers could benefit from my experience.

Showing posts with label C# Wait. Show all posts
Showing posts with label C# Wait. Show all posts

Thursday, March 27, 2008

Simulating a time spanned event with the sleep event

Here is how to simulate a time spanned event with the sleep event and a millisecond argument:

System.Threading.Thread.Sleep(2000);