Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(835)

Unified Diff: tests/benchmark_smoke/benchmark_base.dart

Issue 11265024: Make methods in Stopwatch getters and rename to be more consistent. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Apply suggestions. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/benchmark_smoke/benchmark_base.dart
diff --git a/tests/benchmark_smoke/benchmark_base.dart b/tests/benchmark_smoke/benchmark_base.dart
index 5aac45011f7dfa9a1f21756f3e06c8c296218d25..41a3729ad958cca62467920a1b1ba093fcbbbcf7 100644
--- a/tests/benchmark_smoke/benchmark_base.dart
+++ b/tests/benchmark_smoke/benchmark_base.dart
@@ -60,7 +60,7 @@ class BenchmarkBase {
int elapsed = 0;
while (elapsed < timeMinimum || iter < 32) {
f();
- elapsed = watch.elapsedInMs();
+ elapsed = watch.elapsedMilliseconds;
iter++;
}
return (1000.0 * iter) / elapsed;

Powered by Google App Engine
This is Rietveld 408576698