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

Unified Diff: lib/src/utils.dart

Issue 11305009: Fix dwc extension with latest js-interop, small fix to dwc, and updates to (Closed) Base URL: git@github.com:dart-lang/dart-web-components.git@master
Patch Set: 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
« extension/background.html ('K') | « lib/src/compiler.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/utils.dart
diff --git a/lib/src/utils.dart b/lib/src/utils.dart
index 2f482f0f45255d675e5c2f5c371763e26f7c6763..06bfbf69c2165fb934236c14c096d15c43d44739 100644
--- a/lib/src/utils.dart
+++ b/lib/src/utils.dart
@@ -33,7 +33,7 @@ time(String logMessage, callback(), {bool printTime: false}) {
watch.start();
var result = callback();
watch.stop();
- final duration = watch.elapsedInMs();
+ final duration = watch.elapsedMilliseconds;
if (printTime) {
_printMessage(logMessage, duration);
}
@@ -52,7 +52,7 @@ Future asyncTime(String logMessage, Future callback(),
watch.start();
return callback()..then((_) {
watch.stop();
- final duration = watch.elapsedInMs();
+ final duration = watch.elapsedMilliseconds;
if (printTime) {
_printMessage(logMessage, duration);
}
« extension/background.html ('K') | « lib/src/compiler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698