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

Introduce time profiler #2

Open
medikoo opened this issue Sep 14, 2017 · 0 comments
Open

Introduce time profiler #2

medikoo opened this issue Sep 14, 2017 · 0 comments
Assignees

Comments

@medikoo
Copy link
Owner

medikoo commented Sep 14, 2017

const logTimer = log.startTimer('foo'); // foo[start]
...
logTimer.lap('first round'); // foo[lap] first round +0.13ms
...
logTimer.lap('second round'); // foo[lap] second round +0.10ms (0.23ms total)
...
logTimer.stop('finish'); // foo[end] finish +0.17ms (0.40ms total)

Timing methods should probably be introduced within core of those package. It should be light, and separating this into other extension may raise issues of functionality may be sees as non standard so not supported by all loggers.

@medikoo medikoo self-assigned this Sep 14, 2017
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