tpae / node-repl

JavaScript Read-Eval-Print-Loop (REPL) for Atom
MIT License
11 stars 3 forks source link

Add execution time #10

Open tpae opened 7 years ago

tpae commented 7 years ago

As a developer, it would be nice to see how long it took to execute a certain snippet.

I'm guessing we can use this: https://nodejs.org/api/console.html#console_console_time_label

tbremer commented 7 years ago

This should be relatively painless to implement. You can run it in context with the code before and after its push to the readstream