blob: a53d465e773b64b7684461edbc698eeb2e491545 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/* $Id$ */
/* _*_C++_*_ */
#if !defined (_MT_CUBIT_TIMER_H)
#define _MT_CUBIT_TIMER_H
#include "Task_Client.h"
class MT_Cubit_Timer
{
// = TITLE
// A class that encapsulates the pccTimer for chorus and uses
// ACE Timer for other platforms.
public:
MT_Cubit_Timer (Task_State *ts);
void start (void);
void stop (void);
ACE_timer_t get_elapsed (void);
private:
#if defined (CHORUS)
int pstartTime_;
int pstopTime_;
// variables for the pccTimer.
#endif
ACE_High_Res_Timer timer_;
// timer.
ACE_Time_Value delta_;
// Elapsed time in microseconds.
Task_State *ts_;
// task state.
};
#endif
|