Sunshine master
Self-hosted game stream host for Moonlight.
stat_trackers.h File Reference

Declarations for streaming statistic tracking. More...

#include <chrono>
#include <functional>
#include <limits>
#include <boost/format.hpp>
Include dependency graph for stat_trackers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  stat_trackers::min_max_avg_tracker< T >
 Accumulates minimum, maximum, and average values between periodic callbacks. More...
 

Functions

boost::format stat_trackers::one_digit_after_decimal ()
 Create a Boost formatter with one fractional digit.
 
boost::format stat_trackers::two_digits_after_decimal ()
 Create a Boost formatter with two fractional digits.
 

Detailed Description

Declarations for streaming statistic tracking.

Function Documentation

◆ one_digit_after_decimal()

boost::format stat_trackers::one_digit_after_decimal ( )

Create a Boost formatter with one fractional digit.

Create a formatter for values with one digit after the decimal point.

Returns
Boost format configured for one fractional digit.

◆ two_digits_after_decimal()

boost::format stat_trackers::two_digits_after_decimal ( )

Create a Boost formatter with two fractional digits.

Create a formatter for values with two digits after the decimal point.

Returns
Boost format configured for two fractional digits.