Domanda di colloquio di DrFirst

how would you write a decorator to time function execution?