mirror of
https://bitbucket.org/Mattrixwv/javaclasses.git
synced 2025-12-06 23:13:57 -05:00
Fixed bug where part returned by getStr was off by a factor of 10
This commit is contained in:
@@ -101,8 +101,8 @@ public class Stopwatch{
|
||||
}
|
||||
|
||||
//Turn the number into a string
|
||||
Double durationFraction = ((duration % 1) * 100);
|
||||
String time = String.format("% 3d.%03d", duration.intValue(), durationFraction.intValue());
|
||||
Double durationFraction = ((duration % 1) * 1000);
|
||||
String time = String.format("%d.%03d", duration.intValue(), durationFraction.intValue());
|
||||
|
||||
//Tack on the appropriate suffix for resolution
|
||||
switch(resolution){
|
||||
|
||||
Reference in New Issue
Block a user