feat: Add creationTime function to process (#13542)

* Add process creation time

* Making docs clear for process creation time

* Address comments for process creation time

* Add process info cc file

* fixing comments around documentation

* Update doc for return val

* Capitalize number in docs

* chore: bump electron-typescript-definitions
This commit is contained in:
Husayn 2018-08-10 07:03:30 -07:00 committed by Charles Kerr
parent 9902d42760
commit 19cb5bad94
6 changed files with 34 additions and 7 deletions

View file

@ -111,6 +111,13 @@ The `process` object has the following methods:
Causes the main thread of the current process crash.
### `process.getCreationTime()`
Returns `Number | null` - The number of milliseconds since epoch, or `null` if the information is unavailable
Indicates the creation time of the application.
The time is represented as number of milliseconds since epoch. It returns null if it is unable to get the process creation time.
### `process.getCPUUsage()`
Returns [`CPUUsage`](structures/cpu-usage.md)