Index: pkg/compiler/lib/src/dump_info.dart |
diff --git a/pkg/compiler/lib/src/dump_info.dart b/pkg/compiler/lib/src/dump_info.dart |
index 634d962c6f1c1ed5baa1d7009f3e1f9ab915f074..2a775a16522c4b3022c3ed335f969933b620ea75 100644 |
--- a/pkg/compiler/lib/src/dump_info.dart |
+++ b/pkg/compiler/lib/src/dump_info.dart |
@@ -580,8 +580,9 @@ class DumpInfoTask extends CompilerTask implements InfoReporter { |
compiler.options.hasBuildId ? compiler.options.buildId : null, |
compilationMoment: new DateTime.now(), |
compilationDuration: compiler.measurer.wallClock.elapsed, |
- toJsonDuration: stopwatch.elapsedMilliseconds, |
- dumpInfoDuration: this.timing, |
+ toJsonDuration: |
+ new Duration(milliseconds: stopwatch.elapsedMilliseconds), |
+ dumpInfoDuration: new Duration(milliseconds: this.timing), |
noSuchMethodEnabled: compiler.backend.enabledNoSuchMethod, |
minified: compiler.options.enableMinification); |