pm_cycles Subroutine

Purpose

Returns processor speed in cycles per second.

Library

Performance Monitor APIs Library (libpmapi.a)

Syntax

#include <pmapi.h>

double pm_cycles (void)

Description

The pm_cycles subroutine returns the nominal processor speed for the system. The speed is returned in cycles per second. The nominal processor speed is the maximum frequency at which the system can run across all environments and workload conditions. Depending on system conditions, the nominal processor frequency might not represent the minimum or maximum achievable processor speed.

Return Values

Item Description
0 An error occurred.
Processor speed in cycles per second No errors occurred.

Files

Item Description
/usr/include/pmapi.h Defines standard macros, data types, and subroutines.