Class SmoothAcceleratingTimeout
Timeout which accelerates slowly at first then fast up to a maximum speed. Use AdvanceStage() to increment the stage of the timer (e.g. in your timer callback code).
public class SmoothAcceleratingTimeout : Timeout
- Inheritance
-
SmoothAcceleratingTimeout
- Inherited Members
Constructors
- SmoothAcceleratingTimeout(TimeSpan, TimeSpan, double, Func<bool>)
Creates a new instance of the smooth acceleration timeout.
Properties
Methods
- AdvanceStage()
Advances the timer stage, this should be called from your timer callback or whenever you want to advance the speed.
- Reset()
Resets the timer to original speed.