Skip to content

Commit

Permalink
doc: update os.uptime() and process.uptime() info
Browse files Browse the repository at this point in the history
PR-URL: #12294
Fixes: #12291
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
vsemozhetbyt authored and evanlucas committed May 2, 2017
1 parent 089a96f commit 71b39ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 2 additions & 3 deletions doc/api/os.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,8 @@ added: v0.3.3

The `os.uptime()` method returns the system uptime in number of seconds.

*Note*: Within Node.js' internals, this number is represented as a `double`.
However, fractional seconds are not returned and the value can typically be
treated as an integer.
*Note*: On Windows the returned value includes fractions of a second.
Use `Math.floor()` to get whole seconds.

## os.userInfo([options])
<!-- YAML
Expand Down
3 changes: 3 additions & 0 deletions doc/api/process.md
Original file line number Diff line number Diff line change
Expand Up @@ -1659,6 +1659,9 @@ added: v0.5.0
The `process.uptime()` method returns the number of seconds the current Node.js
process has been running.

*Note*: the return value includes fractions of a second. Use `Math.floor()`
to get whole seconds.

## process.version
<!-- YAML
added: v0.1.3
Expand Down

0 comments on commit 71b39ae

Please sign in to comment.