Get CPU Usage 

Target Category: Arduino, C2407, Cortex M3, Delfino, F280x, F281X, Linux AMD64 and Raspberry Pi, MSP430, Piccolo, STM32

Target Sub-Category: Target Interface

Description: The Get CPU Usage block provides CPU usage for the enclosing task for a compound block driven off an interrupt or scheduled as a background task or scheduled as a custom rate task.

CPU usage is displayed in raw clock ticks. To translate the raw clock ticks into a percentage of the time slice of the block that it is inside of, use the CPU usage calc diagram under Toolbox > Tools.

Note: For Linux targets, the CPU rate is always considered to be 1 GHz.