#include "ace/Basic_Stats.h"
#include "ace/Log_Msg.h"
Go to the source code of this file.
Functions | |
ACE_RCSID (ace, Basic_Stats,"$Id: Basic_Stats.cpp 80826 2008-03-04 14:51:23Z wotte $") 1 void ACE_Basic_Stats |
ACE_RCSID | ( | ace | , | |
Basic_Stats | , | |||
"$Id: Basic_Stats.cpp 80826 2008-03-04 14:51:23Z wotte $" | ||||
) |
Definition at line 10 of file Basic_Stats.cpp.
: Basic_Stats.cpp 80826 2008-03-04 14:51:23Z wotte $") ACE_BEGIN_VERSIONED_NAMESPACE_DECL void ACE_Basic_Stats::accumulate (const ACE_Basic_Stats &rhs) { if (rhs.samples_count_ == 0) return; if (this->samples_count_ == 0) { this->min_ = rhs.min_; this->min_at_ = rhs.min_at_; this->max_ = rhs.max_; this->max_at_ = rhs.max_at_; } else { if (this->min_ > rhs.min_) { this->min_ = rhs.min_; this->min_at_ = rhs.min_at_; } if (this->max_ < rhs.max_) { this->max_ = rhs.max_; this->max_at_ = rhs.max_at_; } } this->samples_count_ += rhs.samples_count_; this->sum_ += rhs.sum_; }