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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/core_patch.dart

Issue 11417110: Let stopwatch use window.performance.now when available. Fix for: http://code.google.com/p/dart/iss… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix return statement Created 8 years, 1 month 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
Index: sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart b/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
index 5c6cb3bbe6ee7f8a38ba7532fc3d4730c0287a00..7617430821ad3cf5fb8d4493db70b944a544e76d 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
@@ -148,8 +148,8 @@ patch class _DateImpl {
// Patch for Stopwatch implementation.
patch class _StopwatchImpl {
- patch static int _frequency() => 1000;
- patch static int _now() => Primitives.dateNow();
+ patch static int _frequency() => 1000000;
+ patch static int _now() => Primitives.numMicroseconds();
Lasse Reichstein Nielsen 2012/11/22 11:26:48 Side note: We should get rid of these "Primitives"
ahe 2012/11/22 12:54:46 I disagree, and this is not the forum for discussi
}

Powered by Google App Engine
This is Rietveld 408576698