CLK_getprd
Application Program Interface
2-53
C Interface
Syntax
period = CLK_getprd();
Parameters
Void
Return Value
Uns
period
/* period register value */
Reentrant
yes
Description
CLK_getprd returns the number of high-resolution timer counts per low-
resolution interrupt.
CLK_getprd can be used to compute an absolute length of time from the
number of low-resolution timer interrupts. For example, the following
code computes time in milliseconds.
timeAbs = (CLK_getltime() * CLK_getprd()) / CLK_countspms();
See Also
CLK_countspms
CLK_gethtime
CLK_cpuCyclesPerHtime
CLK_cpuCyclesPerLtime
GBL_getClkin
STS_delta
CLK_getprd
Get period register value