WatchdogTimer.cpp
Go to the documentation of this file.
1 // WatchdogTimer.cpp
2 // Copyright (c) SICK AG
3 // created: 06.06.2011, Willhoeft
4 
5 #include "WatchdogTimer.hpp"
6 #include "Timer.hpp"
7 
8 
15 {
18 }
19 
21 {
22 }
23 
24 
28 void WatchdogTimer::start(const TimeDuration interval)
29 {
30  m_timeoutInterval = interval;
31  reset();
32 }
33 
38 {
39  if (Time::now() >= m_nextElapseTime)
40  {
41  // Timer ist abgelaufen
42  return true;
43  }
44 
45  // Timer ist noch nicht abgelaufen
46  return false;
47 }
48 
53 {
54  // Naechste Ablaufzeit setzen
56 }
57 
virtual ~WatchdogTimer()
Destructor.
void start(UINT32 seconds)
Restarts the timer. Call this as "ok" signal.
double m_duration
Definition: Time.hpp:26
WatchdogTimer()
Constructor.
static Time now()
Definition: Time.cpp:168
TimeDuration m_timeoutInterval


libsick_ldmrs
Author(s): SICK AG , Martin Günther , Jochen Sprickerhof
autogenerated on Sat Jun 8 2019 17:57:33