blob: e3882a28bc32794fb482312313ba4f5ac75c64df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// $Id$
ACE_INLINE int
ACE_Sample_History::sample (ACE_UINT64 value)
{
if (this->sample_count_ >= this->max_samples_)
return -1;
this->samples_[this->sample_count_++] = value;
return 0;
}
ACE_INLINE ACE_UINT64
ACE_Sample_History::get_sample (size_t i) const
{
if (this->sample_count_ <= i)
return 0;
return this->samples_[i];
}
|