getCpuUsage

Gets the CPU usage with default or custom snapshot interval.

getCpuUsage([interval]); → returns numeric

Argument Reference

interval numeric
Default: 1000

Time in milliseconds. This is the time delay between two snapshots.

Compatibility

BoxLang:

Version 1.0.0+ Requires the bx-oshi module

Examples
Sample code invoking the getCpuUsage function

getCpuUsage()

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub