C# 클래스 Progression.Extras.ETACalculator

Calculates the "Estimated Time of Arrival" (or more accurately, "Estimated Time of Completion"), based on a "rolling average" of progress over time.
상속: IETACalculator
파일 보기 프로젝트 열기: scottrippey/Progression

공개 메소드들

메소드 설명
ETACalculator ( int minimumData, double maximumDuration ) : System

Reset ( ) : void
Update ( float progress ) : void

Adds the current progress to the calculation of ETA.

비공개 메소드들

메소드 설명
ClearExpired ( ) : void

메소드 상세

ETACalculator() 공개 메소드

public ETACalculator ( int minimumData, double maximumDuration ) : System
minimumData int /// The minimum number of data points required before ETA can be calculated. ///
maximumDuration double /// Determines how many seconds of data will be used to calculate the ETA. ///
리턴 System

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

Update() 공개 메소드

Adds the current progress to the calculation of ETA.
public Update ( float progress ) : void
progress float The current level of completion. /// Must be between 0.0 and 1.0 (inclusively).
리턴 void