Hooks for compilation start/end

I’m not familiar with the hooks, but I get the total compilation time for a function by summing the pipeline steps, inspired by the @stuartarchibald here :slight_smile: