Simpler macro for function timing