Log how much time was spent in Salesforce per request/job

We need to log how much time is spent in Salesforce per request or background job, to be able to debug potential issues with specific endpoints or the service as a whole.

Edited by Ahmad Sherif