Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logic to "split" a split at a certain time, to create another split #2

Closed
dpfens opened this issue May 20, 2020 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request

Comments

@dpfens
Copy link
Owner

dpfens commented May 20, 2020

StopWatch.prototype.splitSplit = function(index, timestamp) {
    return newSplit;
}

This method should be called something that denotes that in order to add a split, that time must be taken from a pre-existing split to make room for it,

@dpfens dpfens self-assigned this May 20, 2020
@dpfens dpfens added the enhancement New feature or request label May 20, 2020
dpfens added a commit that referenced this issue May 21, 2020
dpfens added a commit that referenced this issue May 21, 2020
dpfens added a commit that referenced this issue May 21, 2020
dpfens added a commit that referenced this issue May 22, 2020
@dpfens
Copy link
Owner Author

dpfens commented May 22, 2020

instead added a method addRelativeSplit to add a split to the stopwatch at a given number of milliseconds since the start of the stopwatch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant