Measure CPU time for instrumented methods

Merged Paco Guzman requested to merge 18528-cpu-time-instrumentation into master

What does this MR do?

Measure CPU time for instrumented methods

Why was this MR needed?

To have more visibility on resource utilisation

What are the relevant issue numbers?

#18528 (closed)

Does this MR meet the acceptance criteria?