Check Execution Time Python Function Definition