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