Time computation

Dear all,

can anyone give me a hint how to output and store the computation time of acados in pendulum example c_generated_code?
Thanks in advance,

Hi,

I use the following in my c code:

double elapsed_time;
ocp_nlp_get(nlp_config, nlp_solver, "time_tot", &elapsed_time);
printf("MPC time: %.5f", elapsed_time);