summaryrefslogtreecommitdiff
path: root/performance-tests/Misc
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-24 21:19:42 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-24 21:19:42 +0000
commitd945204c3325a1ffb5c793b704a5f0f9c70d4d10 (patch)
tree03180ac800089583cf304192032e5e1a2bb2f79e /performance-tests/Misc
parentdef8d347da6ab8b8eb03610287c67d57fda8d200 (diff)
downloadATCD-d945204c3325a1ffb5c793b704a5f0f9c70d4d10.tar.gz
(main): process command line options before calulating hi-res timer scale factor
Diffstat (limited to 'performance-tests/Misc')
-rw-r--r--performance-tests/Misc/context_switch_time.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/performance-tests/Misc/context_switch_time.cpp b/performance-tests/Misc/context_switch_time.cpp
index b5cfba69b99..89a433c40db 100644
--- a/performance-tests/Misc/context_switch_time.cpp
+++ b/performance-tests/Misc/context_switch_time.cpp
@@ -1140,20 +1140,21 @@ main (int argc, char *argv [])
{
ACE_LOG_MSG->open (argv[0] > 0 ? argv[0] : "context_switch_time");
+ if (get_options (argc, argv))
+ ACE_OS::exit (-1);
+
+ // Disable LM_DEBUG.
+ ACE_Log_Msg::instance ()->priority_mask (ACE_LOG_MSG->priority_mask () ^
+ LM_DEBUG);
+
#if defined (ACE_HAS_PENTIUM) && \
!defined (ACE_HAS_HI_RES_TIMER) && !defined (ACE_WIN32)
// Just to verify that ACE_High_Res_Timer::global_scale_factor ()
// correctly determines the clock speed.
- ACE_DEBUG ((LM_DEBUG, "clock speed: %u MHz\n",
+ ACE_DEBUG ((LM_INFO, "clock speed: %u MHz\n",
ACE_High_Res_Timer::global_scale_factor ()));
#endif /* ACE_HAS_PENTIUM && ! ACE_HAS_HI_RES_TIMER && ! ACE_WIN32 */
- // Disable LM_DEBUG.
- ACE_Log_Msg::instance ()->priority_mask (ACE_LOG_MSG->priority_mask () ^
- LM_DEBUG);
-
- if (get_options (argc, argv)) ACE_OS::exit (-1);
-
if (ACE_OS::sched_params (
ACE_Sched_Params (
ACE_SCHED_FIFO,