From d73150d5699d91941bf0b36cb346306eff41b5f0 Mon Sep 17 00:00:00 2001 From: PapaRaG3 <41174949+dickeyy@users.noreply.github.com> Date: Thu, 18 Nov 2021 15:05:36 -0700 Subject: [PATCH] Added time tracking --- src/sequential.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sequential.py b/src/sequential.py index f50625b..457e0eb 100644 --- a/src/sequential.py +++ b/src/sequential.py @@ -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: @@ -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 @@ -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