Jaguard / time-require

Displays the execution time for Node.js modules loading by hooking require() calls
MIT License
253 stars 20 forks source link

Support SIGINT/SIGTERM #6

Open lo1tuma opened 9 years ago

lo1tuma commented 9 years ago

I want to use time-require in a http-server project which normally never exits. So the process.once('exit') handler is never called. Please add a process.once('SIGINT') handler to output the measured time on a SIGINT signal.