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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.