hoist expression
diff --git a/lib/src/benchmark_base.dart b/lib/src/benchmark_base.dart
index 873f299..fc21496 100644
--- a/lib/src/benchmark_base.dart
+++ b/lib/src/benchmark_base.dart
@@ -36,13 +36,14 @@
// Measures the score for this benchmark by executing it repeately until
// time minimum has been reached.
- static double measureFor(Function f, int timeMinimum) {
+ static double measureFor(Function f, int minimumMillis) {
+ int minimumMicros = minimumMillis * 1000;
int time = 0;
int iter = 0;
Stopwatch watch = new Stopwatch();
watch.start();
int elapsed = 0;
- while (elapsed < (timeMinimum * 1000)) {
+ while (elapsed < minimumMicros) {
f();
elapsed = watch.elapsedMicroseconds;
iter++;