mirror of
https://bitbucket.org/Mattrixwv/pyclasses.git
synced 2025-12-06 18:33:58 -05:00
Changed getString to return minutes when >= 120
seconds and hours when >= 120 minutes rather than 1000
This commit is contained in:
@@ -117,13 +117,13 @@ class Stopwatch:
|
|||||||
|
|
||||||
#If the resolution counter reached 3 we may need to change to minutes or hours
|
#If the resolution counter reached 3 we may need to change to minutes or hours
|
||||||
#Check if seconds is low enough resolution
|
#Check if seconds is low enough resolution
|
||||||
if(time >= 1000):
|
if(time >= 120):
|
||||||
#If not, change it to minutes
|
#If not, change it to minutes
|
||||||
time /= 60
|
time /= 60
|
||||||
resCnt += 1
|
resCnt += 1
|
||||||
|
|
||||||
#Check if minutes is low enough resolution
|
#Check if minutes is low enough resolution
|
||||||
if(time >= 1000):
|
if(time >= 120):
|
||||||
#If not, change it to hours
|
#If not, change it to hours
|
||||||
time /= 60
|
time /= 60
|
||||||
resCnt += 1
|
resCnt += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user