Check Execution Time Python Programs Using Functions