The process.uptime() method returns the number of seconds the current Node.js process has been running.
process.uptime()
The return value includes fractions of a second. Use Math.floor() to get whole seconds.
Math.floor()
v0.5.0