File tree 2 files changed +5
-3
lines changed
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
373
373
374
374
The ` os.uptime() ` method returns the system uptime in number of seconds.
375
375
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.
379
378
380
379
## os.userInfo([ options] )
381
380
<!-- YAML
Original file line number Diff line number Diff line change @@ -1675,6 +1675,9 @@ added: v0.5.0
1675
1675
The ` process.uptime() ` method returns the number of seconds the current Node.js
1676
1676
process has been running.
1677
1677
1678
+ * Note* : the return value includes fractions of a second. Use ` Math.floor() `
1679
+ to get whole seconds.
1680
+
1678
1681
## process.version
1679
1682
<!-- YAML
1680
1683
added: v0.1.3
You can’t perform that action at this time.
0 commit comments