summaryrefslogtreecommitdiff
path: root/performance-tests
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-12-04 21:11:50 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-12-04 21:11:50 +0000
commite7e5eed828e3c3bc812a971bda436e03be7934aa (patch)
tree111249483348b4d0084963314f430ec2e6de35d6 /performance-tests
parente5b616d095e2889218eddf0ba11f03226ff48925 (diff)
downloadATCD-e7e5eed828e3c3bc812a971bda436e03be7934aa.tar.gz
only use rusage if ACE_HAS_PRUSAGE_T is #defined
Diffstat (limited to 'performance-tests')
-rw-r--r--performance-tests/Synch-Benchmarks/Options.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/performance-tests/Synch-Benchmarks/Options.cpp b/performance-tests/Synch-Benchmarks/Options.cpp
index ea416968ef4..a2ac88454c7 100644
--- a/performance-tests/Synch-Benchmarks/Options.cpp
+++ b/performance-tests/Synch-Benchmarks/Options.cpp
@@ -278,10 +278,12 @@ void
Options::print_results (void)
{
ACE_Profile_Timer::ACE_Elapsed_Time et;
- ACE_Profile_Timer::Rusage rusage;
-
this->_itimer.elapsed_time (et);
+
+#if defined (ACE_HAS_PRUSAGE_T)
+ ACE_Profile_Timer::Rusage rusage;
this->_itimer.elapsed_rusage (rusage);
+#endif /* ACE_HAS_PRUSAGE_T */
size_t total = this->count ();
double nbytes = total * this->msg_size ();