diff options
Diffstat (limited to 'performance-tests/Cubit/TAO/MT_Cubit/Timer.h')
-rw-r--r-- | performance-tests/Cubit/TAO/MT_Cubit/Timer.h | 55 |
1 files changed, 26 insertions, 29 deletions
diff --git a/performance-tests/Cubit/TAO/MT_Cubit/Timer.h b/performance-tests/Cubit/TAO/MT_Cubit/Timer.h index 45c22dbb567..1e3166d6f8b 100644 --- a/performance-tests/Cubit/TAO/MT_Cubit/Timer.h +++ b/performance-tests/Cubit/TAO/MT_Cubit/Timer.h @@ -1,19 +1,17 @@ /* -*- C++ -*- */ -/* $Id$ */ - -// ============================================================================ -// -// = LIBRARY -// TAO/tests -// -// = FILENAME -// Timer.h -// -// = AUTHOR -// Andy Gokhale, Sumedh Mungee, Sergio Flores-Gaitan and Nagarajan -// Surendran. -// -// ============================================================================ + +//============================================================================= +/** + * @file Timer.h + * + * $Id$ + * + * @author Andy Gokhale + * @author Sumedh Mungee + * @author Sergio Flores-Gaitan and Nagarajan Surendran. + */ +//============================================================================= + #ifndef _MT_CUBIT_TIMER_H #define _MT_CUBIT_TIMER_H @@ -26,11 +24,14 @@ #include "ace/High_Res_Timer.h" +/** + * @class MT_Cubit_Timer + * + * @brief A class that encapsulates the pccTimer for chorus and uses + * ACE Timer for other platforms. + */ class MT_Cubit_Timer { - // = TITLE - // A class that encapsulates the pccTimer for chorus and uses - // ACE Timer for other platforms. public: MT_Cubit_Timer (u_int granularity); @@ -40,22 +41,18 @@ public: ACE_timer_t get_elapsed (void); private: + /// timer. ACE_High_Res_Timer timer_; - // timer. + /// Elapsed time in microseconds. ACE_Time_Value delta_; - // Elapsed time in microseconds. + /** + * This is the granularity of the timing of the CORBA requests. A + * value of 5 represents that we will take time every 5 requests, + * instead of the default of every request (1). + */ 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, - // instead of the default of every request (1). - -#if defined (CHORUS_MVME) - // Variables for the pccTimer. - int pstartTime_; - int pstopTime_; -#endif /* CHORUS_MVME */ }; #endif /* _MT_CUBIT_TIMER_H */ |