PeanutButter
Loading...
Searching...
No Matches
PeanutButter.Utils.SlidingWindowEstimatedTimeRemainingExtensions Class Reference

Provides convenience functions to predict an estimated time remaining based on a remaining item count. More...

Static Public Member Functions

static TimeSpan EstimatedTimeRemaining (this ISlidingWindow< int > window, int remainingItems)
 Estimate the time remaining based on the rate in the window being operated on and the number of items left to process.
 
static TimeSpan EstimatedTimeRemaining (this ISlidingWindow< long > window, long remainingItems)
 Estimate the time remaining based on the rate in the window being operated on and the number of items left to process.
 
static TimeSpan EstimatedTimeRemaining (this ISlidingWindow< decimal > window, decimal remainingItems)
 Estimate the time remaining based on the rate in the window being operated on and the number of items left to process.
 
static TimeSpan EstimatedTimeRemaining (this ISlidingWindow< double > window, double remainingItems)
 Estimate the time remaining based on the rate in the window being operated on and the number of items left to process.
 

Detailed Description

Provides convenience functions to predict an estimated time remaining based on a remaining item count.

Member Function Documentation

◆ EstimatedTimeRemaining() [1/4]

static TimeSpan PeanutButter.Utils.SlidingWindowEstimatedTimeRemainingExtensions.EstimatedTimeRemaining ( this ISlidingWindow< decimal >  window,
decimal  remainingItems 
)
static

Estimate the time remaining based on the rate in the window being operated on and the number of items left to process.

Parameters
window
remainingItems
Returns

◆ EstimatedTimeRemaining() [2/4]

static TimeSpan PeanutButter.Utils.SlidingWindowEstimatedTimeRemainingExtensions.EstimatedTimeRemaining ( this ISlidingWindow< double >  window,
double  remainingItems 
)
static

Estimate the time remaining based on the rate in the window being operated on and the number of items left to process.

Parameters
window
remainingItems
Returns

◆ EstimatedTimeRemaining() [3/4]

static TimeSpan PeanutButter.Utils.SlidingWindowEstimatedTimeRemainingExtensions.EstimatedTimeRemaining ( this ISlidingWindow< int >  window,
int  remainingItems 
)
static

Estimate the time remaining based on the rate in the window being operated on and the number of items left to process.

Parameters
window
remainingItems
Returns

◆ EstimatedTimeRemaining() [4/4]

static TimeSpan PeanutButter.Utils.SlidingWindowEstimatedTimeRemainingExtensions.EstimatedTimeRemaining ( this ISlidingWindow< long >  window,
long  remainingItems 
)
static

Estimate the time remaining based on the rate in the window being operated on and the number of items left to process.

Parameters
window
remainingItems
Returns

The documentation for this class was generated from the following file: