C# 클래스 Icing.Diagnostics.Stats

Calculates and formats running totals, averages, etc, for an arbitrary statistic.
파일 보기 프로젝트 열기: benallred/Icing 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

Report() 공개 메소드

Adds the current value to the statistics.
public Report ( double current ) : void
current double The current value.
리턴 void

ReportAndGetSummary() 공개 메소드

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.
리턴 string

Stats() 공개 메소드

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() 공개 메소드

Returns a string that represents the current object.
public ToString ( ) : string
리턴 string