proc_cpu_mhz()

The CPU speed in megahertz

Syntax:

float proc_cpu_mhz(int id);

Arguments:

Name Description
id The processor identifier number. Use 0 on systems that have only one processor.

Description:

The precise speed in megahertz for the processor to the thousandth decimal point.

Return Values:

On success, returns the CPU speed in megahertz. On error, -1 is returned.

See Also:

proc_cpu_vendor_id(), proc_cpu_family(), proc_cpu_bogomips(), proc_cpu_model() proc_cpu_model_name(), proc_cpu_cache_size()



INDEX