mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-12-03 11:11:25 +00:00
d4bfe9299d
Mainly wanted to see if init time is a factor, there are optimizations we can do there.
12 lines
294 B
C++
12 lines
294 B
C++
#include <cstdio>
|
|
|
|
#include "Common/Math/Statistics.h"
|
|
|
|
void SimpleStat::Format(char *buffer, size_t sz) {
|
|
if (min_ == INFINITY) {
|
|
snprintf(buffer, sz, "%s: N/A\n", name_);
|
|
} else {
|
|
snprintf(buffer, sz, "%s: %0.2f (%0.2f..%0.2f, avg %0.2f)\n", name_, value_, min_, max_, smoothed_);
|
|
}
|
|
}
|