redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers
Saturday 17 November 2018 12:59

Ask your IT question here

Pause in python script execution



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Programming Forums -> Python programming forum
View previous topic :: View next topic  
Author Message
PythonNewbie
Guest Programmer




Hello!
How do I stop my python script for a period of time, 3 seconds for example,
then continue it's execution?
Thanks!


Cool

Reply with quote
 
Madwolf
Site Admin


Joined: 22 Dec 2004
Posts: 77
Hey PythonNewbie!

Quote:
How do I stop my python script for a period of time

Try this:

Code:
import time

time.sleep(3)


It will pause the script for 3 seconds, then continue.

Cheers!

Reply with quote
 
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Programming Forums -> Python programming forum


Dubai Forums - Expat Help | Vegan Forum | Java Programming | 3d Design Resources | 3d Forum | 3D Jobs | 3D Textures | Paris Forum | Europe Forum
Dubai Classifieds | Dubai Property | Jobs in Dubai | Free London Classifieds | Jobs in London UK

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

© 2018 RedHo