File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -373,9 +373,8 @@ added: v0.3.3
373373
374374The ` os.uptime() ` method returns the system uptime in number of seconds.
375375
376- * Note* : Within Node.js' internals, this number is represented as a ` double ` .
377- However, fractional seconds are not returned and the value can typically be
378- treated as an integer.
376+ * Note* : On Windows the returned value includes fractions of a second.
377+ Use ` Math.floor() ` to get whole seconds.
379378
380379## os.userInfo([ options] )
381380<!-- YAML
Original file line number Diff line number Diff line change @@ -1675,6 +1675,9 @@ added: v0.5.0
16751675The ` process.uptime() ` method returns the number of seconds the current Node.js
16761676process has been running.
16771677
1678+ * Note* : the return value includes fractions of a second. Use ` Math.floor() `
1679+ to get whole seconds.
1680+
16781681## process.version
16791682<!-- YAML
16801683added: v0.1.3
You can’t perform that action at this time.
0 commit comments