mirror of
https://bitbucket.org/Mattrixwv/javaclasses.git
synced 2025-12-06 23:13:57 -05:00
Updated to fix formatting error in Stopwatch getStr
This commit is contained in:
@@ -105,13 +105,13 @@ public class Stopwatch{
|
||||
duration /= 1000;
|
||||
}
|
||||
//Check if the duration needs reduced to minutes
|
||||
if(duration >= 1000){
|
||||
if(duration >= 120){
|
||||
//Reduce to minutes
|
||||
duration /= 60;
|
||||
resolution = TIME_RESOLUTION.values()[resolution.ordinal() + 1];
|
||||
}
|
||||
//Check if the duration needs reduced to hours
|
||||
if(duration >= 1000){
|
||||
if(duration >= 60){
|
||||
//Reduce to hours
|
||||
duration /= 60;
|
||||
resolution = TIME_RESOLUTION.values()[resolution.ordinal() + 1];
|
||||
|
||||
Reference in New Issue
Block a user