Hi Guys,
Would any of you know what the equivalent of:
C++: Sleep( 1000 );
would be in C#?
Thanks,
Jenny
Printable View
Hi Guys,
Would any of you know what the equivalent of:
C++: Sleep( 1000 );
would be in C#?
Thanks,
Jenny
Hello!
Try System.Threading.Thread.Sleep(1000);Quote:
Would any of you know what the equivalent of:
C++: Sleep( 1000 );
Best regards,
Thomas Hetzer
Hi,
Thanks for that...
Does it still do the same job if you arent using threads?
Thanks,
Jenny
Hello!
You are always using threads. Even if you do not start additional threads, your code is executed in the main thread. If you call Thread.Sleep(1000) from your main thread, your main thread will be blocked for one second.Quote:
Does it still do the same job if you arent using threads?
Best regards,
Thomas Hetzer
Thanks Thomas!
You have really helped!