How can I make a program wait for a few seconds before proceeding? An example of where this would come in handy is when the program allows the user 5 seconds before it proceeds with some default option... can I do this using python?
mahela007 6 Posting Whiz in Training
Recommended Answers
Jump to PostTry:
time.sleep
Jump to PostYou can also keep a program busy with a for loop, but the exact delay will depend on your computer's capabilities.
Jump to PostAs far as I understand, module time and most timers use the hardware timer (internal clock chip). Using a float representing UTC time in seconds since the epoch created by the chip. The epoch on most of those chips is 1/1/1970 00:00:00
You can see seconds since epoch with …
All 9 Replies
slate 241 Posting Whiz in Training
snippsat 661 Master Poster
mahela007 6 Posting Whiz in Training
Gribouillis 1,391 Programming Explorer Team Colleague
vegaseat 1,735 DaniWeb's Hypocrite Team Colleague
mahela007 6 Posting Whiz in Training
vegaseat 1,735 DaniWeb's Hypocrite Team Colleague
Gribouillis 1,391 Programming Explorer Team Colleague
mahela007 6 Posting Whiz in Training
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.