Page 1 of 1

how to know the "execution time" and "execution cycles" in simulation

Posted: Sun Sep 01, 2024 9:59 am
by S_VE
Hello everyone

While Debugging in Simulation mode, how can we know the time taken per each STEP ( or from Breakpoint to Breakpoint )
(1) Execution time ( in mS / uS / nS )
(2) Execution Cycles ( in uC cycles )

thanks

Re: how to know the "execution time" and "execution cycles" in simulation

Posted: Mon Sep 02, 2024 1:05 pm
by BenR
Hello,

We do not simulate on this level and so this is currently not possible. We simulate the code but the speed of the sim and the speed of the hardware are not tied together or calculated.

To measure execution time on your hardware simply use the timer component like a stopwatch around the code you want to measure and then display the time on a display or via a serial UART.

Re: how to know the "execution time" and "execution cycles" in simulation

Posted: Mon Sep 02, 2024 5:55 pm
by S_VE
Thank you Ben for your clear reply