Change millis to int for stopwatch
This commit is contained in:
parent
9ea8e7822a
commit
8701e3ad61
|
@ -93,8 +93,8 @@ public class StopWatch {
|
|||
tgt.append(val);
|
||||
}
|
||||
|
||||
public double getMillisPerOperation(int theNumOperations) {
|
||||
return ((double) getMillis()) / Math.max(1.0, theNumOperations);
|
||||
public int getMillisPerOperation(int theNumOperations) {
|
||||
return (int)(((double) getMillis()) / Math.max(1.0, theNumOperations));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue