Wrapper to provide timing data on function execution