Skip to main content

IAR Embedded Workbench for RH850 3.20.x

__wallTime_ms

In this section:
Syntax
__wallTime_ms()
Return value

Returns the current host computer CPU time in milliseconds.

For use with

All C-SPY drivers.

Description

This macro returns the current host computer CPU time in milliseconds. The first call will always return 0.

Example
__var t1;
__var t2;

t1 = __wallTime_ms();
__var i;
for (i =0; i < 1000; i++)
  __message "Tick";
t2 = __wallTime_ms();
  __message "Elapsed time: ", t2 - t1;