source: trunk/MagicSoft/Cosy/base/MTimeout.h@ 1858

Last change on this file since 1858 was 1702, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 479 bytes
Line 
1#ifndef MTIMEOUT_H
2#define MTIMEOUT_H
3
4#include <TTimer.h>
5
6class MTimeout : public TTimer
7{
8 Bool_t Notify()
9 {
10 TurnOff(); // remove from system list
11 return kFALSE;
12 }
13
14public:
15 MTimeout(Long_t ms=500) : TTimer(ms, kFALSE)
16 {
17 // Use SetTime to change the timing
18 if (ms) TurnOn(); // Add to system list
19 }
20
21 void Start()
22 {
23 Reset(); // reset before adding
24 TurnOn(); // Add to system list
25 }
26};
27
28
29#endif
Note: See TracBrowser for help on using the repository browser.