0
votes

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.

1
A word of caution: very few problems have calls to Sleep() as the solution. - David Heffernan
I see. Then how would one go about pausing a while for instance. - ThN
why would you want to pause and completely block a thread? What is the problem? - David Heffernan

1 Answers

3
votes

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