11.8 SYS_CLOCK (0x10)

Returns the number of centiseconds since the execution started.

Values returned by this SVC can be of limited use for some benchmarking purposes because of communication overhead or other agent-specific factors. For example, with a debug hardware unit such as RVI or DSTREAM, the request is passed back to the host for execution. This can lead to unpredictable delays in transmission and process scheduling.
Use this function to calculate time intervals, by calculating differences between intervals with and without the code sequence to be timed.

Entry

Register R1 must contain zero. There are no other parameters.

Return

On exit, R0 contains:
  • the number of centiseconds since some arbitrary start point, if the call is successful
  • –1 if the call is not successful, for example, because of a communications error.
Related reference
11.9 SYS_ELAPSED (0x30)
11.23 SYS_TICKFREQ (0x31)
Non-ConfidentialPDF file icon PDF versionARM DUI0375E
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.