2 //=============================================================================
6 * Implements the CORBA object.
8 * @author Michael Kircher <Michael.Kircher@mchp.siemens.de>
10 //=============================================================================
16 #include "ace/High_Res_Timer.h"
21 : public POA_TimeoutObj
24 Timeout_i (CORBA::ORB_ptr orb
);
28 virtual void sendTimeToWait (CORBA::Long msec
);
30 virtual void shutdown (void);
37 class TimeoutHandler_i
38 : public POA_AMI_TimeoutObjHandler
45 virtual void sendTimeToWait (void);
47 virtual void sendTimeToWait_excep (
48 ::Messaging::ExceptionHolder
* excep_holder
);
50 void reset_reply_counter ();
52 void reset_reply_excep_counter ();
54 unsigned short reply_counter ();
56 unsigned short reply_excep_counter ();
58 /// Start the time measurement
61 /// Return the elapsed time
62 ACE_Time_Value
&elapsed_time ();
65 unsigned short reply_counter_
;
67 unsigned short reply_excep_counter_
;
69 ACE_High_Res_Timer timer_
;
71 ACE_Time_Value elapsed_time_
;
74 #endif /* TIMEOUT_I_H */