Answers for "stop time python"

7

how to stop python for some time in python

import time
print("This is how to pause a program")
time.sleep(5)
print("Did you saw that i slept for 5 seconds")
Posted by: Guest on July-27-2021
2

how to stop python for some time in python

now = datetime.datetime.now()
print ("Current date and time : ")
print (now.strftime("%Y-%m-%d %H:%M:%S"))
Posted by: Guest on July-26-2021
5

python how to measure code run in time

import time
start_time = time.time()
main()
print("--- %s seconds ---" % (time.time() - start_time))
Posted by: Guest on May-09-2020
3

how to stop python for certain time in python

import time
How_long = 5
time.sleep(How_long)
print("Look I got printed after 5 seconds")
Posted by: Guest on August-25-2021

Python Answers by Framework

Browse Popular Code Answers by Language