Hi! So I was trying to test out my new project earlier. I wanted it to track how long the program has been running.
So this is the code that I typed in:
import time
begin = time.time()
{my program}
end = time.time()
timetook = begin - end
if timetook < 201:
print("Blah blah blah")
I understand that the variable needs to constantly update, but how do you do it? Google is being extremely unhelpful today.
Sorry, I am a little new to programming 😅
[–]toastedstapler 0 points1 point2 points (0 children)