| Index: samples/leap/leap_leg.dart
|
| ===================================================================
|
| --- samples/leap/leap_leg.dart (revision 11786)
|
| +++ samples/leap/leap_leg.dart (working copy)
|
| @@ -124,7 +124,7 @@
|
| Runner() : compiler = new LeapCompiler();
|
|
|
| String init() {
|
| - Stopwatch sw = new Stopwatch.start();
|
| + Stopwatch sw = new Stopwatch()..start();
|
| compiler.scanBuiltinLibraries();
|
| sw.stop();
|
| return 'Scanned core libraries in ${sw.elapsedInMs()}ms';
|
| @@ -133,7 +133,7 @@
|
| String update(String codeText) {
|
| StringBuffer sb = new StringBuffer();
|
|
|
| - Stopwatch sw = new Stopwatch.start();
|
| + Stopwatch sw = new Stopwatch()..start();
|
|
|
| LibraryElement e = compile(new LeapScript(codeText));
|
|
|
| @@ -261,7 +261,7 @@
|
| }
|
|
|
| Element runSelective(Script script) {
|
| - Stopwatch sw = new Stopwatch.start();
|
| + Stopwatch sw = new Stopwatch()..start();
|
| Element e;
|
| try {
|
| e = runCompilerSelective(script);
|
|
|