mirror of
https://bitbucket.org/Mattrixwv/rustclasses.git
synced 2025-12-06 18:34:00 -05:00
Updated to fix formatting error in getString
This commit is contained in:
@@ -88,12 +88,12 @@ impl Stopwatch{
|
||||
timeRes += 1;
|
||||
}
|
||||
//Check if the duration needs reduced to minutes
|
||||
if(duration >= 1000.0){
|
||||
if(duration >= 120.0){
|
||||
duration /= 60.0;
|
||||
timeRes = TimeResolution::MINUTE as i32;
|
||||
}
|
||||
//Check if the duration needs reduced to hours
|
||||
if(duration >= 1000.0){
|
||||
if(duration >= 60.0){
|
||||
duration /= 60.0;
|
||||
timeRes = TimeResolution::HOUR as i32;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user