ThN
ThN

Reputation: 3278

Does Delphi Prism have Sleep() function?

I am coding in Delphi Prism and I need to pause a loop with sleep timer, but sleep(x) doesn't exist in Delphi prism. What function or procedure is there in Delphi prism to replace the sleep(x) procedure?

Thanks.

Upvotes: 0

Views: 324

Answers (1)

Reed Copsey
Reed Copsey

Reputation: 564333

Delphi Prism is using the .NET framework, so you should be able to use Thread.Sleep instead of sleep(x);

Upvotes: 3

Related Questions