I would like to create a timer in Python. After I run the .py class I would like a method to be called every hour in 12 hour period, after 12 hours end the program closes. How can I do this?
I want something like:
if time == 12 hours:
finish
else:
if 1 hours passed:
methodFoo()