summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Cubit/TAO/MT_Cubit/Timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/performance-tests/Cubit/TAO/MT_Cubit/Timer.h')
-rw-r--r--TAO/performance-tests/Cubit/TAO/MT_Cubit/Timer.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/TAO/performance-tests/Cubit/TAO/MT_Cubit/Timer.h b/TAO/performance-tests/Cubit/TAO/MT_Cubit/Timer.h
index b42ea4c334c..653426c106b 100644
--- a/TAO/performance-tests/Cubit/TAO/MT_Cubit/Timer.h
+++ b/TAO/performance-tests/Cubit/TAO/MT_Cubit/Timer.h
@@ -11,14 +11,19 @@
//
// = AUTHOR
// Andy Gokhale, Sumedh Mungee, Sergio Flores-Gaitan and Nagarajan
-// Surendran.
+// Surendran.
//
// ============================================================================
-#if !defined (_MT_CUBIT_TIMER_H)
+#ifndef _MT_CUBIT_TIMER_H
#define _MT_CUBIT_TIMER_H
#include "ace/OS.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
#include "ace/High_Res_Timer.h"
class MT_Cubit_Timer
@@ -37,10 +42,10 @@ public:
private:
ACE_High_Res_Timer timer_;
// timer.
-
+
ACE_Time_Value delta_;
// Elapsed time in microseconds.
-
+
u_int granularity_;
// This is the granularity of the timing of the CORBA requests. A
// value of 5 represents that we will take time every 5 requests,