summaryrefslogtreecommitdiff
path: root/trunk/CIAO/performance-tests/Benchmark/RoundTripServer/LatencyTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/CIAO/performance-tests/Benchmark/RoundTripServer/LatencyTest.cpp')
-rw-r--r--trunk/CIAO/performance-tests/Benchmark/RoundTripServer/LatencyTest.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/trunk/CIAO/performance-tests/Benchmark/RoundTripServer/LatencyTest.cpp b/trunk/CIAO/performance-tests/Benchmark/RoundTripServer/LatencyTest.cpp
new file mode 100644
index 00000000000..98858e62f5b
--- /dev/null
+++ b/trunk/CIAO/performance-tests/Benchmark/RoundTripServer/LatencyTest.cpp
@@ -0,0 +1,29 @@
+//
+// $Id$
+//
+#include "LatencyTest.h"
+#include "CIAO_common.h"
+
+LatencyTest_Impl::LatencyTest_Impl (CORBA::ORB_ptr orb)
+ : orb_ (CORBA::ORB::_duplicate (orb))
+{
+}
+
+
+CORBA::Long
+LatencyTest_Impl::makeCall (CORBA::Long send_time
+ ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ if (CIAO::debug_level () > 0)
+ ACE_DEBUG ((LM_DEBUG, "Sending Time back \n"));
+
+ return send_time;
+}
+
+void
+LatencyTest_Impl::shutdown (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ this->orb_->shutdown (0 ACE_ENV_ARG_PARAMETER);
+}