4.7.2. armul_ReadClock

This function must return the elapsed time in microseconds since the simulation model reset.

The read_clock entry in the ARMul_MemInterface structure is a pointer to an armul_ReadClock() function.

Syntax

ARMTime armul_ReadClock(void *handle)

where:

handle

is the value of interf->handle set in MemInit.

Return

This function returns an ARMTime value representing the elapsed time in microseconds. The default type of ARMTime is unsigned long. ARMTime is defined in armul_types.h.

Usage

A model can supply NULL if it does not support this functionality.

Copyright © 2002-2007 ARM Limited. All rights reserved.ARM DUI 0207D
Non-Confidential