diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-12-04 21:11:50 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-12-04 21:11:50 +0000 |
commit | e7e5eed828e3c3bc812a971bda436e03be7934aa (patch) | |
tree | 111249483348b4d0084963314f430ec2e6de35d6 /performance-tests | |
parent | e5b616d095e2889218eddf0ba11f03226ff48925 (diff) | |
download | ATCD-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.cpp | 6 |
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 (); |