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

Unified Diff: test/dart_codegen/expect/core/stopwatch.dart

Issue 1148283010: Remove dart backend (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « test/dart_codegen/expect/core/stacktrace.dart ('k') | test/dart_codegen/expect/core/string.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/core/stopwatch.dart
diff --git a/test/dart_codegen/expect/core/stopwatch.dart b/test/dart_codegen/expect/core/stopwatch.dart
deleted file mode 100644
index f38fba919c7571b36ed79421196666f7e0165f1c..0000000000000000000000000000000000000000
--- a/test/dart_codegen/expect/core/stopwatch.dart
+++ /dev/null
@@ -1,45 +0,0 @@
-part of dart.core;
- class Stopwatch {int get frequency => _frequency;
- num _start;
- num _stop;
- Stopwatch() {
- _initTicker();
- }
- void start() {
- if (isRunning) return; if (_start == null) {
- _start = _now();
- }
- else {
- _start = _now() - (_stop - _start);
- _stop = null;
- }
- }
- void stop() {
- if (!isRunning) return; _stop = _now();
- }
- void reset() {
- if (_start == null) return; _start = _now();
- if (_stop != null) {
- _stop = _start;
- }
- }
- int get elapsedTicks {
- if (_start == null) {
- return 0;
- }
- return ((__x20) => DEVC$RT.cast(__x20, num, int, "ImplicitCast", """line 102, column 12 of dart:core/stopwatch.dart: """, __x20 is int, true))((_stop == null) ? (_now() - _start) : (_stop - _start));
- }
- Duration get elapsed {
- return new Duration(microseconds: elapsedMicroseconds);
- }
- int get elapsedMicroseconds {
- return (elapsedTicks * 1000000) ~/ frequency;
- }
- int get elapsedMilliseconds {
- return (elapsedTicks * 1000) ~/ frequency;
- }
- bool get isRunning => _start != null && _stop == null;
- static int _frequency;
- external static void _initTicker();
- external static int _now();
-}
« no previous file with comments | « test/dart_codegen/expect/core/stacktrace.dart ('k') | test/dart_codegen/expect/core/string.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698