patdie421 / mea-edomus

Automatically exported from code.google.com/p/mea-edomus
0 stars 0 forks source link

MEA-EDOMUS : ajouter un utilitaire "timer" #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
A mettre dans interfaces_type_001.

une variable timer :
- etat du timer (actif/arrêté)
- fréquence de déclanchement (toutes les x secondes)
- dernière execution
- autorearmement (oui/non)

testTimer()
   Si timer actif
   Si courrant - dernière excecution > fréquence
      lancer la commande
      si autorearmement
         etat du timer = actif
         dernière execution = maintenant
      sinon
         etat du timer = arrêté

CreerTimer()
   dernière excéution = 0
   état du timer = arrêté

LancerTimer()
   dernière exécution = maintenant
   état du timer= lancé

ArrêterTimer()
   état du timer = arrêté
   dernière exécution = 0

Original issue reported on code.google.com by patrice....@gmail.com on 8 Jul 2013 at 11:59

GoogleCodeExporter commented 9 years ago

Original comment by patrice....@gmail.com on 8 Jul 2013 at 12:56

GoogleCodeExporter commented 9 years ago

Original comment by patrice....@gmail.com on 8 Jul 2013 at 3:46

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by patrice....@gmail.com on 8 Jul 2013 at 7:24