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.

Sample code invoking the getCpuUsage function


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

Fork me on GitHub