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

support for timestamps and relative timers #143

Open
catdad opened this issue May 26, 2017 · 1 comment
Open

support for timestamps and relative timers #143

catdad opened this issue May 26, 2017 · 1 comment

Comments

@catdad
Copy link
Owner

catdad commented May 26, 2017

Currently, you have to start and end a timer with the same name. This is a problem if you want to time several events from the start of the test (or from some milestone), but you do not know necessarily know how many events you will be timing or what their names will be. I would like an API that can create a timestamp (or milestone) and be able to record named timer values from that milestone rather than from the start of a timer with the same name.

Example:

this.timestamp('milestone name');
...
this.end('timer name', 'milestone name');

Note: it might need to use a specific new function name for this method, so as to not need to execute extra logic to determine whether it is ending a named timer or if it is relative to a timestamp... since timers can be very sensitive.

@catdad
Copy link
Owner Author

catdad commented May 26, 2017

It might be better to implement this directly in hitime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant