Hi,

is there some way how can I pause code execution for a specified time? For example:

1. Make something
2. 3 seconds pause (wait to complete previous tasks)
3. Continue

Thanx,
Stivi

Is this console or windows app?

It's win app

Not 100% sure but i would try

Thread.Sleep(30)

but maybe i dont know hat i am talking about. :)

-T

I think this code will work


thread.sleep(1700); //1.7sec

I think this code will work


thread.sleep(1700); //1.7sec

Yea i forgot to say that the number is in millisecoonds.....

-T

#include<stdlib.h>
system(*pause*);

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.