Start¶
Restarts a milestone if it already exists; otherwise, creates a new milestone with the specified name and starts it immediately.
myMilestones.Start(name: string, goal?: ( string | DateTimeOffset )):void (DateTimeOffset)
Parameters¶
string name
The name of the milestone. Required.
( string | DateTimeOffset ) goal optional
The goal for the milestone. This can be a duration string or a specific date and time. Optional.
Returns¶
Nothing. If the named milestone is paused it is resumed; otherwise a new milestone is created when none is active.