Answers for "python chronometer a process"

3

python timer

import time
timer_length = float(input("How many seconds would you like you're timer to be set for? "))
time.sleep(timer_length)
print("Done!")
Posted by: Guest on August-01-2020
0

python counter for job time

>>> from timer import Timer
>>> t = Timer()
>>> t.start()

>>> t.stop()  # A few seconds later
Elapsed time: 3.8191 seconds
Posted by: Guest on January-06-2021

Python Answers by Framework

Browse Popular Code Answers by Language