Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
In C# how does one Sleep?
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01525765
Message ID:
01525774
Views:
53
I'd forgotten that there's an alternative TimeSpan parameter - probably because I've never had a use for it.
You could do a really 'Sleeping Beauty' job with that:
Sleep( new TimeSpan(36500, 0, 0, 0));

>System.Threading.Thread.Sleep(5000)
>
>http://msdn.microsoft.com/en-us/library/system.threading.thread.sleep(v=VS.100).aspx
>
>>In FoxPro I call the Sleep API or DoEvents to give some time back to the OS or to pause.
>>
>>What is the equivalent in C#?
>>
>>Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform