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

Side by Side Diff: client/html/benchmarks/common/Interval.dart

Issue 9845043: Rename client/{dom,html} to lib/{dom,html} . (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « client/html/benchmarks/common/BenchUtil.dart ('k') | client/html/benchmarks/common/JSON.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // A utility object for measuring time intervals.
6
7 class Interval {
8 int _start, _stop;
9
10 Interval() {
11 }
12
13 void start() {
14 _start = BenchUtil.now;
15 }
16
17 void stop() {
18 _stop = BenchUtil.now;
19 }
20
21 // Microseconds from between start() and stop().
22 int get elapsedMicrosec() {
23 return (_stop - _start) * 1000;
24 }
25
26 // Milliseconds from between start() and stop().
27 int get elapsedMillisec() {
28 return (_stop - _start);
29 }
30 }
OLDNEW
« no previous file with comments | « client/html/benchmarks/common/BenchUtil.dart ('k') | client/html/benchmarks/common/JSON.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698