save method
Implementation
bool save(FpsInfo info) {
if (items.length >= maxCount) {
totalNum -= items.removeFirst().totalSpan!;
}
items.add(info);
totalNum += info.totalSpan!;
max = info.totalSpan! > max! ? info.totalSpan : max;
return true;
}