Skip to content

Commit

Permalink
Added time tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
dickeyy committed Nov 18, 2021
1 parent b4f66aa commit d73150d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sequential.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
import time as t

# Get number to start test
with open('Collatz-Algorithm/src/lastSuccessful.json', 'r') as openfile:
Expand All @@ -19,6 +20,7 @@
# store last successful number
lastSuccessWrite = {
"number": oNum,
"startedAt": t.strftime(r"%m/%d/%Y %H:%M:%S", t.localtime())
}

# Serializing json
Expand All @@ -42,6 +44,7 @@
# store last successful number
lastSuccessWrite = {
"number": oNum,
"startedAt": t.strftime(r"%m/%d/%Y %H:%M:%S", t.localtime())
}

# Serializing json
Expand Down

0 comments on commit d73150d

Please sign in to comment.