Sorry this is unclear.
Originally Posted by DEvanRoberts
"The method TakesAWhile() needs at least the number of milliseconds passed with the second argument to finish because of the Thread.Sleep() method:"
"at least the number of milliseconds" - what is the range? What is the most it can take?.
It's the second parameter of the method. The second parameter is used with a Thread.Sleep, so you can pass a value that is accepted from Thread.Sleep. This method accepts any positive integer value. Passing 3000 (as it is done in the following sample, the thread sleeps 3 seconds. If the value 7000 is passed, the thread sleeps for 7 seconds.
If it's of interest what the range for Thread.Sleep is (which is not relevant for the samples here), the MSDN documentation helps. Any positive Int32 value can be used up to Int32.MaxValue. For waiting an infinite time, Timeout.Infinite can be used. This is a constant for -1.