GepocUS / Spcies

Suite of Predictive Controllers for Industrial Embedded Systems. A Matlab toolbox for automatic code generation of solvers for MPC controllers.
Apache License 2.0
14 stars 2 forks source link

Put time measurement steps into a function #40

Closed pablokrupa closed 6 months ago

pablokrupa commented 11 months ago

Currently, time measurement is done by repeating a large amount of code. This should be simplified.

The idea would be to provide a function that measures the current time and returns the time lapse w.r.t. a previous time instant. This function would be added to the generated .h and .c files in some way during the code-generation process.

pablokrupa commented 6 months ago

This has been added with the new snippet feature to all solvers as of release 'v0.3.10' (bb8406630ea952b0b5ba63e180d0030f91e8390c).