0

How can I give a time to each line execution?

I want a line in my program to be run after 1 min from its previous line execution. Somehow giving time to them. How can that be done

27th Jan 2017, 3:14 PM
Arash Shakib
Arash Shakib - avatar
2 ответов
+ 1
There is no accurate way to accomplish this using SoloLearn. Maybe in the actual python interperator.
27th Jan 2017, 3:50 PM
Nick
Nick - avatar
+ 1
you can use time.sleep()function: time.sleep(secs) it's exactly like sleep function used in linux bash scripting. You can read here for more info: http://pythoncentral.io/pythons-time-sleep-pause-wait-sleep-stop-your-code/
5th Feb 2017, 2:55 AM
Armin Yekkalam
Armin Yekkalam - avatar