Skip to main content

IAR Embedded Workbench for RH850 3.20.x

clock

In this section:
Source file
rh850\src\lib\time\clock.c
Declared in

time.h

Description

Standard C library function that accesses the processor time.

It is assumed that clock counts seconds. If this is not the case, andCLOCKS_PER_SEC is used, CLOCKS_PER_SEC should be set to the actual number of ticks per second prior to using time.h. The C++ header chrono uses CLOCKS_PER_SEC when implementing the function now().

C-SPY debug action

Returns the clock on the host computer.

Default implementation

Returns -1 to indicate that processor time is not available.

See also

Briefly about retargeting.