MarlinUtil
1.12.1
|
Simple timimg processor, which offers a delay after an event has been processed. More...
#include <SimpleTimer.h>
Protected Member Functions | |
void | wait (int sleepTime) |
Protected Attributes | |
int | _nRun |
int | _nEvt |
int | _startTime |
int | _time |
LCTime * | _startTimer |
LCTime * | _currentTimer |
int | _mode |
int | _secondsToWait |
int | _secondsPerEvent |
int | _secondsOfJob |
int | _minutesOfJob |
Simple timimg processor, which offers a delay after an event has been processed.
SecondsToWait | : time to wait (in seconds) |
Mode | : toggle for two different timing modes 0 - no wait, just display time (in sec.) needed per event and summarise time of processing all events 1 - just wait the time which is specified in the parameter SecondsToWait 2 - calculate the elapsed time since the last call of this processor (e.g. in the last event) and wait for the remaining time (SecondsToWait minus elapsed time). If already more time elapsed than SecondsToWait, carry on without any delay. |