-
Notifications
You must be signed in to change notification settings - Fork 121
Open
Description
It would be useful in some special cases to be able to restart a running timer from the beginning. Maybe this functionality already exists? Here is my attempt, but maybe I missed something:
/// <summary>
/// Restarts a running or paused timer.
/// </summary>
public void Restart()
{
if (this.isDone)
{
return;
}
this._timeElapsedBeforePause = null;
this._startTime = this.GetWorldTime();
this.isCompleted = false;
}
Metadata
Metadata
Assignees
Labels
No labels