process.uptime() 方法会返回当前 Node.js 进程已运行的时长(以秒为单位)。
process.uptime()
返回的值包括秒的分数。 使用 Math.floor() 可以获得秒的整数。
Math.floor()
若有收获,就点个赞吧
0 人点赞
让时间为你证明