ROOTANA
TPeriodicClass.hxx
Go to the documentation of this file.
1 #ifndef TPeriodicClass_hxx_seen
2 #define TPeriodicClass_hxx_seen
3 
4 #include <TTimer.h>
5 
6 #include <stdio.h>
7 
8 double GetTimeSec();
9 
10 
11 class TPeriodicClass : public TTimer
12 {
13 public:
14  typedef void (*TimerHandler)(void);
15 
18  double fLastTime;
19 
20  TPeriodicClass(int period_msec,TimerHandler handler);
21 
22  Bool_t Notify();
23 
25  {
26  TurnOff();
27  }
28 };
29 
30 
31 #endif
double GetTimeSec()
TimerHandler fHandler
TPeriodicClass(int period_msec, TimerHandler handler)
void(* TimerHandler)(void)