Link to home
Start Free TrialLog in
Avatar of ba272
ba272

asked on

How do I make a C# program sleep for a given number of milliseconds>

I've tried "sleep", I've tried "delay.  Both without luck.  And WAITFOR related to SQL Server.


Thanks for the help.  I'm sure it's obvious, but sometimes the most obvious problems are the worst to solve.

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of cookre
cookre
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ba272
ba272

ASKER

Thanks.  I'll give it a try.
It's in the System.Threading namespace if you can't find it.
System.Threading.Thread.Sleep(x);

X = number of milisecconds to sleep.
also could you describe WHY you want this,.. we could offer other solutions too,...


regards,..

Floris Briolas