Template
Chargement...
Recherche...
Aucune correspondance
Timer.h
1/****************************************************************************************
2Nom du fichier : Integrator.h
3Auteur : Mathieu Durand
4Date de création : 17 juillet 2024
5
6****************************************************************************************/
7
8#ifndef TIMER_H
9#define TIMER_H
10
16class Timer
17{
18 public:
19 void start(double seconds);
20 void start(unsigned long milliseconds);
21
22 double getTimeLeftSeconds();
23 unsigned long getTimeLeftMilliseconds();
24
25 bool isTimerOver();
26
27 private:
28 unsigned long targetMillis;
29
30};
31
32#endif // TIMER_H
Class for managing waiting for period of time asynchronously.
Definition: Timer.h:17
double getTimeLeftSeconds()
Definition: Timer.cpp:24
bool isTimerOver()
Definition: Timer.cpp:39
unsigned long getTimeLeftMilliseconds()
Definition: Timer.cpp:28
void start(double seconds)
Definition: Timer.cpp:15