Time Python Function Example Code Java