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 <refack@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
vsemozhetbyt authored and MylesBorins committed Jul 11, 2017
1 parent 914f368 commit 2435af9
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 @@ -373,9 +373,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 @@ -1675,6 +1675,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 2435af9

Please sign in to comment.