summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Notify/lib/Task_Stats.inl
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:11 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:11 +0000
commit6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (patch)
treeda50d054f9c761c3f6a5923f6979e93306c56d68 /TAO/orbsvcs/tests/Notify/lib/Task_Stats.inl
parent0e555b9150d38e3b3473ba325b56db2642e6352b (diff)
downloadATCD-6b846cf03c0bcbd8c276cb0af61a181e5f98eaae.tar.gz
Repo restructuring
Diffstat (limited to 'TAO/orbsvcs/tests/Notify/lib/Task_Stats.inl')
-rw-r--r--TAO/orbsvcs/tests/Notify/lib/Task_Stats.inl54
1 files changed, 0 insertions, 54 deletions
diff --git a/TAO/orbsvcs/tests/Notify/lib/Task_Stats.inl b/TAO/orbsvcs/tests/Notify/lib/Task_Stats.inl
deleted file mode 100644
index aed41117a3d..00000000000
--- a/TAO/orbsvcs/tests/Notify/lib/Task_Stats.inl
+++ /dev/null
@@ -1,54 +0,0 @@
-//$Id$
-
-#include "ace/High_Res_Timer.h"
-#include "ace/Log_Msg.h"
-
-ACE_INLINE double
-Task_Stats::diff_sec (ACE_UINT64 before, ACE_UINT64 after)
-{
- double seconds =
-#if defined ACE_LACKS_LONGLONG_T
- (after - before) / gsf_;
-#else /* ! ACE_LACKS_LONGLONG_T */
- static_cast<double> (ACE_UINT64_DBLCAST_ADAPTER((after - before) / gsf_));
-#endif /* ! ACE_LACKS_LONGLONG_T */
- seconds /= ACE_HR_SCALE_CONVERSION;
-
- return seconds;
-}
-
-ACE_INLINE ACE_UINT32
-Task_Stats::diff_usec (ACE_UINT64 before, ACE_UINT64 after)
-{
- // convert to microseconds
- #if !defined ACE_LACKS_LONGLONG_T
- ACE_UINT32 elapsed_microseconds = ACE_UINT32((after - before) / gsf_);
- #else /* ! ACE_LACKS_LONGLONG_T */
-
- ACE_UINT32 elapsed_microseconds = (after - before) / gsf_;
-
- #endif /* ! ACE_LACKS_LONGLONG_T */
-
- #if defined (ACE_WIN32)
- elapsed_microseconds*=1000; // convert to uSec on Win32
- #endif /* ACE_WIN32 */
-
- return elapsed_microseconds;
-}
-
-ACE_INLINE int
-Task_Stats::sample (ACE_UINT64 inv_start_time, ACE_UINT64 inv_end_time)
-{
- if (this->samples_count_ >= this->max_samples_)
- {
- ACE_DEBUG ((LM_DEBUG, "Task_Stats::sample ret -1\n"));
- return -1;
- }
-
- this->time_inv_[this->samples_count_] = inv_start_time;
- this->time_exec_[this->samples_count_] = inv_end_time;
-
- this->samples_count_++;
-
- return 0;
-}