summaryrefslogtreecommitdiff
path: root/performance-tests/Synch-Benchmarks/Base_Test/Baseline_Test.i
blob: 4b27d6ed0da246cc4375c4ac9425a1c7c2605cd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// $Id$

int
Baseline_Options::test_try_lock (void)
{
  return this->test_try_lock_;
}

size_t
Baseline_Options::multiply_factor (void)
{
  return this->multiply_factor_;
}

size_t
Baseline_Options::iteration (void)
{
  return this->iteration_;
}

int
Baseline_Options::add_time (ACE_Profile_Timer::ACE_Elapsed_Time &et)
{
  this->real_ += et.real_time;
  this->system_ += et.system_time;
  this->user_ += et.user_time;
  return 0;
}

int
Baseline_Options::inc_loop_counter (void)
{
  this->total_iteration_ += this->multiply_factor_;
  return (this->total_iteration_ >= this->iteration_);
}