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

Unified Diff: runtime/lib/stopwatch_patch.dart

Issue 10831327: Update stopwatch to use patching to share sources instead of exposing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | « runtime/lib/stopwatch.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/stopwatch_patch.dart
diff --git a/runtime/lib/stopwatch_patch.dart b/runtime/lib/stopwatch_patch.dart
new file mode 100644
index 0000000000000000000000000000000000000000..b81b8b0a7158dc9f077f5a05f7402e599ab3336d
--- /dev/null
+++ b/runtime/lib/stopwatch_patch.dart
@@ -0,0 +1,13 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+// A VM patch of the stopwatch part of dart:core.
+
+patch class StopwatchImplementation {
+ // Returns the current clock tick.
+ /* patch */ static int _now() native "Stopwatch_now";
+
+ // Returns the frequency of clock ticks in Hz.
+ /* patch */ static int _frequency() native "Stopwatch_frequency";
+}
« no previous file with comments | « runtime/lib/stopwatch.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698