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

log.hrtime usability refinement #58

Open
jaeh opened this issue Apr 7, 2020 · 0 comments
Open

log.hrtime usability refinement #58

jaeh opened this issue Apr 7, 2020 · 0 comments
Assignees

Comments

@jaeh
Copy link
Member

jaeh commented Apr 7, 2020

log.hrtime returns a time right now.

instead, it should return a function to call.

const startTime = log.hrtime()

log.timeTaken(startTime, 'message')

turns into

const hrtime = log.hrtime()

hrtime('message')
@jaeh jaeh self-assigned this Apr 7, 2020
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