Skip to content

Instantly share code, notes, and snippets.

@ulgens
Created May 6, 2021 16:29
Show Gist options
  • Save ulgens/919fd8aa4ba5670f6ec8b3a9384f1010 to your computer and use it in GitHub Desktop.
Save ulgens/919fd8aa4ba5670f6ec8b3a9384f1010 to your computer and use it in GitHub Desktop.
from datetime import datetime
start_time = datetime.now()
# Your code runs here
time_elapsed = datetime.now() - start_time
print(f"Time elapsed: {time_elapsed}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment