Fix std calculation.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
cbe10854b9
commit
67df88d9a2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue