Fixed up dbc.cpp so now just use it everywhere. I next need to find a way to pass that to format automatically.
parent
2baa044695
commit
a6d83db20c
@ -1,10 +1,11 @@ |
|||||||
#include "stats.hpp" |
#include "stats.hpp" |
||||||
#include <fmt/core.h> |
#include <fmt/core.h> |
||||||
|
#include "dbc.hpp" |
||||||
|
|
||||||
void Stats::dump(std::string msg) |
void Stats::dump(std::string msg) |
||||||
{ |
{ |
||||||
fmt::println("{}: sum: {}, sumsq: {}, n: {}, " |
dbc::log(fmt::format("{}: sum: {}, sumsq: {}, n: {}, " |
||||||
"min: {}, max: {}, mean: {}, stddev: {}", |
"min: {}, max: {}, mean: {}, stddev: {}", |
||||||
msg, sum, sumsq, n, min, max, mean(), |
msg, sum, sumsq, n, min, max, mean(), |
||||||
stddev()); |
stddev())); |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue