Created
December 7, 2018 12:11
-
-
Save dzamlo/9debd3284750f3eed2a4654f0ec908e8 to your computer and use it in GitHub Desktop.
A very simple cli stopwatch in python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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