Change millis to int for stopwatch

This commit is contained in:
James Agnew 2017-05-18 22:06:40 -04:00
parent 9ea8e7822a
commit 8701e3ad61
1 changed files with 2 additions and 2 deletions

View File

@ -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));
}
}