Skip to content

Instantly share code, notes, and snippets.

@ycui1
Last active September 2, 2020 09:27
Show Gist options
  • Save ycui1/08ac88a272bd8fb370dc3f212b8b500b to your computer and use it in GitHub Desktop.
Save ycui1/08ac88a272bd8fb370dc3f212b8b500b to your computer and use it in GitHub Desktop.
>>> @logging_time
... def say_hello(whom):
... """Greet someone"""
... print(f"Hello, {whom}!")
...
... print(say_hello.__doc__)
...
Function that logs time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment