What is the best way of measuring the execution time of a function with nanosecond precision on MQX 4.1?
What I have in mind is something like
uint32_t start = get_time ();
uint32_t delta = get_time () - start;
However, _time_get_nanoseconds () does not work for me because there is a timer interrupt during the execution of f().