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

Side by Side Diff: samples/third_party/dromaeo/web/common/Interval.dart

Issue 1576153002: Remove the Dromaeo and TodoMVC samples. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 part of common;
6
7 // A utility object for measuring time intervals.
8
9 class Interval {
10 int _start, _stop;
11
12 Interval() {
13 }
14
15 void start() {
16 _start = BenchUtil.now;
17 }
18
19 void stop() {
20 _stop = BenchUtil.now;
21 }
22
23 // Microseconds from between start() and stop().
24 int get elapsedMicrosec {
25 return (_stop - _start) * 1000;
26 }
27
28 // Milliseconds from between start() and stop().
29 int get elapsedMillisec {
30 return (_stop - _start);
31 }
32 }
OLDNEW
« no previous file with comments | « samples/third_party/dromaeo/web/common/BenchUtil.dart ('k') | samples/third_party/dromaeo/web/common/Math2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698