GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
I made a small patch to allow us to use format on timeEnd.
console.time('Found %d places');
console.timeEnd('Found %d places', 2);
> Found 2 places: 0ms
console.time('Found %d places and %d faces');
console.timeEnd('Found %d places and %d faces', 2, 5);
> Found 2 places and 5 faces: 0ms
It is useful to profile and log at the same time. What do you think?
add format on timeEnd
Needs tests and an addition to the docs at the very least.
add timeEnd printf-like labels documentation
@fredericosilva As a friendly FYI, GH doesn't send notification emails when you push a new commit, you have to post a "done" message in the PR afterwards.
That said, this comment should wake up @TooTallNate. :-)
add timeEnd printf-like tests
move time/timeEnd tests to the new file
Good to know. thank you @bnoordhuis
@TooTallNate is it ok like this?
Can one of the admins verify this patch?
@fredericosilva ... I know it's been a while, but is this still something you want to pursue? If yes, the PR would need to be updated. If not, we should likely go ahead and close.
Closing this for now. Unless the PR is updated, it's not ever likely to land here. @fredericosilva , if you wish to pursue this further, please open a PR against either nodejs/io.js or nodejs/node.