|
@ -187,14 +187,12 @@ class Stats { |
|
|
|
|
|
|
|
|
void Start() { |
|
|
void Start() { |
|
|
next_report_ = 100; |
|
|
next_report_ = 100; |
|
|
last_op_finish_ = start_; |
|
|
|
|
|
hist_.Clear(); |
|
|
hist_.Clear(); |
|
|
done_ = 0; |
|
|
done_ = 0; |
|
|
bytes_ = 0; |
|
|
bytes_ = 0; |
|
|
seconds_ = 0; |
|
|
seconds_ = 0; |
|
|
start_ = g_env->NowMicros(); |
|
|
|
|
|
finish_ = start_; |
|
|
|
|
|
message_.clear(); |
|
|
message_.clear(); |
|
|
|
|
|
start_ = finish_ = last_op_finish_ = g_env->NowMicros(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void Merge(const Stats& other) { |
|
|
void Merge(const Stats& other) { |
|
|