Fix std calculation.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2020-11-13 20:12:01 +00:00
parent cbe10854b9
commit 67df88d9a2

View file

@ -23,7 +23,7 @@ void Timer::toc()
const auto micros = std::chrono::duration_cast<std::chrono::microseconds>(now - myT0).count();
const double s = micros * 0.000001;
mySum += s;
mySum2 += s * 2;
mySum2 += s * s;
++myN;
myT0 = now;
}