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

Definitions for streaming statistic tracking. More...

#include "stat_trackers.h"
Include dependency graph for stat_trackers.cpp:

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

Definitions 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.