I have one complicated function that is doing three different things. I have a benchmark written to evaluate the performance of this function, but I want to know the performance of each thing happening within the function separately. Until now, I am using Instant::now() + printing to measure the performance. But is there another way to do it?