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 @@ -378,9 +378,8 @@ added: v0.3.3
378
378
379
379
The ` os.uptime() ` method returns the system uptime in number of seconds.
380
380
381
- * Note* : Within Node.js' internals, this number is represented as a ` double ` .
382
- However, fractional seconds are not returned and the value can typically be
383
- treated as an integer.
381
+ * Note* : On Windows the returned value includes fractions of a second.
382
+ Use ` Math.floor() ` to get whole seconds.
384
383
385
384
## os.userInfo([ options] )
386
385
<!-- YAML
Original file line number Diff line number Diff line change @@ -1672,6 +1672,9 @@ added: v0.5.0
1672
1672
The ` process.uptime() ` method returns the number of seconds the current Node.js
1673
1673
process has been running.
1674
1674
1675
+ * Note* : the return value includes fractions of a second. Use ` Math.floor() `
1676
+ to get whole seconds.
1677
+
1675
1678
## process.version
1676
1679
<!-- YAML
1677
1680
added: v0.1.3
You can’t perform that action at this time.
0 commit comments