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

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: 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..017df881bd271e02713f6e61c63b5ae633d558f6 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/core_patch.dart
@@ -149,7 +149,7 @@ patch class _DateImpl {
// Patch for Stopwatch implementation.
patch class _StopwatchImpl {
patch static int _frequency() => 1000;
kasperl 2012/11/21 10:27:57 Wouldn't it be nicer if we returned 1000000 if we
- patch static int _now() => Primitives.dateNow();
+ patch static int _now() => Primitives.numMicroseconds();
}

Powered by Google App Engine
This is Rietveld 408576698