- if (count_>0)
- std::cerr << "##### " << name_ << ": "
- << 1.0 * (sec_ * 1000000 + usec_)/ count_
- << "usec, count=" << count_ << std::endl;
+ if (count_>0) {
+ double total = 0.001 * (sec_ * 1000000 + usec_);
+ std::cerr << std::fixed << std::setprecision(2)
+ << "#pmprof# " << name_ << ": "
+ << total / count_
+ << "msec, count=" << count_
+ << ", total=" << total << "msec"
+ << std::endl;
+ }