summaryrefslogtreecommitdiff
path: root/performance-tests
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-16 15:29:52 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-06-16 15:29:52 +0000
commit174d880528e462eac2a6c9616c9683befa9eb79a (patch)
tree1b5298298072b58535cb1a508610701688dc3864 /performance-tests
parent923948bbcd67c500a9cafd9fd7b3be75e0f758cb (diff)
downloadATCD-174d880528e462eac2a6c9616c9683befa9eb79a.tar.gz
added explicit ACE_U64_TO_U32 conversion macro
Diffstat (limited to 'performance-tests')
-rw-r--r--performance-tests/Misc/basic_perf.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/performance-tests/Misc/basic_perf.cpp b/performance-tests/Misc/basic_perf.cpp
index 92e04621c84..cdfa6ceb000 100644
--- a/performance-tests/Misc/basic_perf.cpp
+++ b/performance-tests/Misc/basic_perf.cpp
@@ -53,9 +53,7 @@ inline
double
per_iteration (const ACE_hrtime_t elapsed /* nanoseconds */)
{
- // The division by (ACE_UINT32) 1u allows transparent support of
- // ACE_U_LongLong; its operator/ produces a u_long result.
- double ms_per_iteration = (double) (elapsed/ (ACE_UINT32) 1u) / 1000.0 /
+ double ms_per_iteration = (double) ACE_U64_TO_U32 (elapsed) / 1000.0 /
(double) iterations;
// Don't print out "-0.000" or "-0.001" . . .