0

Timer function in python?

Hi, is there a timer-like function in python, that does anything in a specific intervall while the program is running? I know that in VB but python sure is quite different :)

7th Dec 2018, 12:48 PM
deha
deha - avatar
3 Answers
+ 3
You can try time.sleep(), or the sched module dedicated for event scheduling. https://docs.python.org/3/library/time.html#time.sleep https://docs.python.org/3.7/library/sched.html
7th Dec 2018, 1:46 PM
Kishalaya Saha
Kishalaya Saha - avatar
+ 2
thanks! The sched module is what I was looking for.
10th Dec 2018, 5:28 PM
deha
deha - avatar
+ 2
You're welcome! 😊
10th Dec 2018, 5:32 PM
Kishalaya Saha
Kishalaya Saha - avatar