mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
doc: update os.uptime() and process.uptime() info
PR-URL: https://github.com/nodejs/node/pull/12294 Fixes: https://github.com/nodejs/node/issues/12291 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
71704fbc96
commit
9b6376a4ee
2 files changed
+5
-3
No files matched your search
+2
-3
@@ -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
|
||||
|
||||
@@ -1672,6 +1672,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
|
||||
|
||||
Reference in new issue
Block a user