Hi Alfonso,
I completely disagree with Donal here.
The actual runtime was as Alfonso suggested
Using:
sim.setup(timestep=0.1, time_scale_factor= 20)
sim.run(10)
This will run for 10 ms
There will be 100 timesteps (runtime / timestep) (10 / 0.1)
Each timestep takes 2 ms (timestep * time_scale_factor) (0.1 * 20)
So the runtime is 200 ms (timestep * timesteps) (100 * 2)
So 0.2 seconds
Verification.
Ran a simple script with the above parameters
INFO: Application runner took 0:00:01.108488
(This includes overhead to start and stop)
Looking at the length of V there where 100 values recorded.
Running for 1000 ms
Application runner took 0:00:20.687639
Here the overhead is less of a factor
So why does the Energy report say 2s
Because it was wrong.
The energy report is a lot simpler than it should be and was never intended to be run with timestep=0.1
Updating the energy report is currently a plan but a low priority
I think a quick fix is
Christian