Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Latest commit

 

History

History
17 lines (11 loc) · 435 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 435 Bytes

since-app-start

Get time passed since you've started node.js process.

Usage

// 1. Set global.appStartTime before you load any node.js modules.
global[Symbol.for('start-time')] = Date.now()

// 2. The following line would return a prepared for output string.
require('since-app-start').addEntry('Loaded modules')

License

MIT (c) 2016 Paul Miller (http://paulmillr.com)