diff options
-rwxr-xr-x | scripts/thready-time-signature.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/thready-time-signature.py b/scripts/thready-time-signature.py index 6d95d2b..e0e82b5 100755 --- a/scripts/thready-time-signature.py +++ b/scripts/thready-time-signature.py @@ -91,6 +91,7 @@ class Results(object): self.lock = threading.RLock() self.sum = datetime.timedelta(seconds = 0) self.t0 = datetime.datetime.now() + self.t1 = None self.n = 0 def add(self, t0, t1): @@ -111,7 +112,8 @@ class Results(object): def report(self): with self.lock: - self.t1 = datetime.datetime.now() + if self.t1 is None: + self.t1 = datetime.datetime.now() print "n {0.n} t0 {0.t0} t1 {0.t1} mean {0.mean} tmean {0.tmean}".format(self) |