1 //=============================================================================
5 * Implements the CORBA object.
7 * @author Michael Kircher <Michael.Kircher@mchp.siemens.de>
9 //=============================================================================
14 #include "ace/High_Res_Timer.h"
18 : public POA_TimeoutObj
21 Timeout_i (CORBA::ORB_ptr orb
);
23 ~Timeout_i () = default;
25 virtual void sendTimeToWait (CORBA::Long msec
);
27 virtual void shutdown ();
33 class TimeoutHandler_i
34 : public POA_AMI_TimeoutObjHandler
39 ~TimeoutHandler_i () = default;
41 virtual void sendTimeToWait ();
43 virtual void sendTimeToWait_excep (
44 ::Messaging::ExceptionHolder
* excep_holder
);
46 void reset_reply_counter ();
48 void reset_reply_excep_counter ();
50 unsigned short reply_counter ();
52 unsigned short reply_excep_counter ();
54 /// Start the time measurement
57 /// Return the elapsed time
58 ACE_Time_Value
&elapsed_time ();
61 unsigned short reply_counter_
;
63 unsigned short reply_excep_counter_
;
65 ACE_High_Res_Timer timer_
;
67 ACE_Time_Value elapsed_time_
;
70 #endif /* TIMEOUT_I_H */