Skip to content

Instantly share code, notes, and snippets.

@dzamlo
Created December 7, 2018 12:11
Show Gist options
  • Save dzamlo/9debd3284750f3eed2a4654f0ec908e8 to your computer and use it in GitHub Desktop.
Save dzamlo/9debd3284750f3eed2a4654f0ec908e8 to your computer and use it in GitHub Desktop.
A very simple cli stopwatch in python
#! /bin/env python3
from datetime import datetime
start = datetime.now()
while True:
now = datetime.now()
print("\r"+str(now-start), end="")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment