Calculate Execution Time Python Function Example Code Java