get_cpu


Description:

public int64 get_cpu ()

Retrieves the CPU frequency in hertz (Hz).

Divide the value by MEGAHERTZ if you need this value in megahertz (MHz).

Parameters:

this

an Resources instance

Returns:

the CPU frequency, or -1.