diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-20 20:58:03 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-20 20:58:03 +0000 |
commit | 3dda4f7a1b88d9377bc5fa019fda314f91bee7bd (patch) | |
tree | 73c4f703d396b1e5e6682e7d529f19b476614e47 /performance-tests | |
parent | 97373a08633a4f7c5dd19bfd6a7823cfa138f956 (diff) | |
download | ATCD-3dda4f7a1b88d9377bc5fa019fda314f91bee7bd.tar.gz |
converted samples from ACE_hrtime_t to ACE_INT32 for ACE_Stats
Diffstat (limited to 'performance-tests')
-rw-r--r-- | performance-tests/Misc/context_switch_time.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/performance-tests/Misc/context_switch_time.cpp b/performance-tests/Misc/context_switch_time.cpp index 6fb0dfdb0a6..5e84bf40d5f 100644 --- a/performance-tests/Misc/context_switch_time.cpp +++ b/performance-tests/Misc/context_switch_time.cpp @@ -722,8 +722,9 @@ main (int argc, char *argv []) suspend_resume_test.elapsed_time ()) { context_switch_test_stats. - sample (ping_suspend_resume_test.elapsed_time () - - suspend_resume_test.elapsed_time ()); + sample ((ping_suspend_resume_test.elapsed_time () - + suspend_resume_test.elapsed_time ()) / + ACE_static_cast (ACE_UINT32, 1u)); ACE_DEBUG ((LM_INFO, "context switch time is (%.3f - %.3f)/2 = " "%.3f microseconds\n", @@ -751,7 +752,8 @@ main (int argc, char *argv []) // Wait for all tasks to exit. ACE_Thread_Manager::instance ()->wait (); - yield_test_stats.sample (yield_test.elapsed_time ()); + yield_test_stats.sample (yield_test.elapsed_time () / + ACE_static_cast (ACE_UINT32, 1u)); // Try _really_ hard not to use floating point. ACE_DEBUG ((LM_INFO, "context switch time from yield test is %u.%03u " |