Keil Logo


11.9 SYS_ELAPSED (0x30)

Returns the number of elapsed target ticks since execution started.

Use SYS_TICKFREQ to determine the tick frequency.


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 and is at the low address
word 2
the most significant word and is at the high address.


On exit:
  • On success, R1 points to a doubleword that contains the number of elapsed ticks. On failure, R1 contains -1.
  • On success, R0 contains 0. On failure, R0 contains -1.


Some debuggers might not support this SVC when connected though RVI or DSTREAM, and they always return –1 in R0.
Non-ConfidentialPDF file icon PDF versionARM DUI0375H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.