Commit bbea44f7 authored by Philip Trettner's avatar Philip Trettner

fixed windows warnings

parent 016ffa04
......@@ -158,7 +158,7 @@ void ActionAnalyzer::dumpSummary(std::ostream &oss, bool verbose)
_ desc = l->shortDesc();
oss << " " << desc << std::string(nameLength - desc.size(), ' ') << " ";
oss << aion_fmt::format(cntFmt, a->count()) << "x ";
aion_systime::formatHuman(a->averageNS(), oss);
aion_systime::formatHuman((int64_t)a->averageNS(), oss);
oss << " = ";
aion_systime::formatHuman(a->totalTimeNS(), oss);
oss << " (";
......@@ -166,7 +166,7 @@ void ActionAnalyzer::dumpSummary(std::ostream &oss, bool verbose)
oss << " ~ ";
aion_systime::formatHuman(a->maxNS(), oss);
oss << ", ±";
aion_systime::formatHuman(a->standardDeviationNS(), oss);
aion_systime::formatHuman((int64_t)a->standardDeviationNS(), oss);
oss << ")\n";
}
}
......
......@@ -47,7 +47,7 @@ public: // properties
int64_t count() const { return mCount; }
int64_t totalTimeNS() const { return mSumNs; }
double totalTime() const { return mSumNs * 1.e-9; }
double averageNS() const { return mCount == 0 ? 0LL : mSumNs / mCount; }
double averageNS() const { return mCount == 0 ? 0.0 : mSumNs / double(mCount); }
double average() const { return averageNS() * 1.e-9; }
double varianceNS() const { return mVariance; }
double variance() const { return mVariance * 1.e-18; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment