Add another macro to log start and end time of functions