0.2.0 • Published 9 months ago

thread-cpu-usage v0.2.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

thread-cpu-usage

The package exports a single function: threadCpuUsage.

The function method returns the user and system CPU time usage of the current thread, in an object with properties user and system, whose values are microsecond values (millionth of a second).

The result of a previous call to threadCpuUsage can be passed as the argument to the function, to get a diff reading.

The API is purposely designed to be identical to Node.js' process.cpuUsage([previousValue]) API.

Install

npm install thread-cpu-usage

License

Apache 2.0

0.2.0

9 months ago

0.2.0-alpha.8

9 months ago

0.2.0-alpha.7

9 months ago

0.2.0-alpha.6

9 months ago

0.2.0-alpha.5

9 months ago

0.2.0-alpha.4

9 months ago

0.2.0-alpha.3

9 months ago

0.2.0-alpha.2

9 months ago

0.1.0

9 months ago