Question d’entretien chez DrFirst

how would you write a decorator to time function execution?