C# Class Icing.Diagnostics.Stats

Calculates and formats running totals, averages, etc, for an arbitrary statistic.
Afficher le fichier Open project: benallred/Icing Class Usage Examples

Méthodes publiques

Méthode Description
Report ( double current ) : void

Adds the current value to the statistics.

ReportAndGetSummary ( double current ) : string

Adds the current value to the statistics and returns a summary of the current state.

Stats ( int expectedIterations, Formatter formatter, Formatter averageFormatter )

Initializes a new instance of the Stats class.

ToString ( ) : string

Returns a string that represents the current object.

Method Details

Report() public méthode

Adds the current value to the statistics.
public Report ( double current ) : void
current double The current value.
Résultat void

ReportAndGetSummary() public méthode

Adds the current value to the statistics and returns a summary of the current state.
public ReportAndGetSummary ( double current ) : string
current double The current value.
Résultat string

Stats() public méthode

Initializes a new instance of the Stats class.
public Stats ( int expectedIterations, Formatter formatter, Formatter averageFormatter )
expectedIterations int The number of expected iterations.
formatter Formatter The value formatter.
averageFormatter Formatter The average value formatter.

ToString() public méthode

Returns a string that represents the current object.
public ToString ( ) : string
Résultat string