I am looking to measure the CPU time required to execute a PLECS standalone model. I am running the model through a simulation script, the same as wallclock is measured in the PLECS tutorials.
I am encountering a strange issue where the CPU time is not being measured properly, but the wallclock time is; the CPU time always shows zero time elapsed. I have attached a screenshot of the simulation script window and octave console showing the outputs. Any help is appreciated.
The simulation script code is here as well
plecs('clc')
t_begin = cputime
tic
plecs('simulate');
toc
t_end = cputime
t_elapsed = t_end - t_begin