Keil™, An ARM® Company

RealView Compiler User's Guide

SYS_ELAPSED (0x30)

A.3.5. SYS_ELAPSED (0x30)

Returns the number of elapsed target ticks since execution started. Use SYS_TICKFREQ to determine the tick frequency.

Entry

On entry, r1 points to a two‑word data block to be used for returning the number of elapsed ticks:

word 1

The least significant word in the doubleword value.

word 2

The most significant word.

Return

On exit:

  • r0 contains –1 if r1 does point to a doubleword containing the number of elapsed ticks. RealView ICE does not support this SVC and always return –1 in r0.

  • r1 points to a doubleword, low‑order word first, that contains the number of elapsed ticks.

Copyright © 2007 ARM Limited. All rights reserved.ARM DUI 0375A