2 #ifndef THROUGHPUT_RECEIVER_H
3 #define THROUGHPUT_RECEIVER_H
4 #include /**/ "ace/pre.h"
7 #include "ace/OS_NS_time.h"
10 # pragma warning(push)
11 # pragma warning (disable:4250)
14 /// Implement the Test::Receiver interface
16 : public virtual POA_Test::Receiver
22 // = The skeleton methods
23 virtual void receive_data (const Test::Message
&message
);
28 /// The timestamp for the first message
29 ACE_hrtime_t start_time_
;
31 /// The number of messages received
32 size_t message_count_
;
34 /// The number of bytes received
37 /// The timestamp for the last message
38 ACE_hrtime_t last_message_time_
;
40 /// The id for the last message
41 CORBA::ULong last_message_id_
;
48 #include /**/ "ace/post.h"
49 #endif /* THROUGHPUT_RECEIVER_H */