mirror of
https://bitbucket.org/Mattrixwv/pyclasses.git
synced 2025-12-06 18:33:58 -05:00
Fixed bug where the incorect time may be given
when using the getString function
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#Python/pyClasses/Stopwatch.py
|
||||
#Matthew Ellison
|
||||
# Created: 01-27-19
|
||||
#Modified: 03-29-19
|
||||
#Modified: 08-02-19
|
||||
#This is a class that is used to time program run times
|
||||
"""
|
||||
Copyright (C) 2019 Matthew Ellison
|
||||
@@ -116,6 +116,7 @@ class Stopwatch:
|
||||
resCnt += 1
|
||||
|
||||
#If the resolution counter reached 3 we may need to change to minutes or hours
|
||||
if(resCnt == 3):
|
||||
#Check if seconds is low enough resolution
|
||||
if(time >= 120):
|
||||
#If not, change it to minutes
|
||||
|
||||
Reference in New Issue
Block a user