mardi 10 juillet 2018

Python if condition true for x amount of time

I would like to create a condition that only gets executed if a is True for more than 3 seconds. I would like it to work like this.

if a == True for more than 3 seconds:
   dosomething

Aucun commentaire:

Enregistrer un commentaire