Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
/ since-app-start Public archive

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

License

Notifications You must be signed in to change notification settings

brunch/since-app-start

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published