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

Unified Diff: samples/third_party/dromaeo/tests/RunnerSuite.dart

Issue 11770004: Rename Date to DateTime. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments and keep Backwards-compatibility class Date. Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/third_party/dromaeo/common/BenchUtil.dart ('k') | samples/time/time_server.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/third_party/dromaeo/tests/RunnerSuite.dart
diff --git a/samples/third_party/dromaeo/tests/RunnerSuite.dart b/samples/third_party/dromaeo/tests/RunnerSuite.dart
index ebf9e1b0abd22babc51f9e49f28089069007913b..1ba4b8157750ea63663d4018cd933e1b063b80fa 100644
--- a/samples/third_party/dromaeo/tests/RunnerSuite.dart
+++ b/samples/third_party/dromaeo/tests/RunnerSuite.dart
@@ -56,12 +56,12 @@ class Suite {
// more smoothly as well.
for (int i = 0; i < _N_RUNS; i++) {
int runs = 0;
- final int start = new Date.now().millisecondsSinceEpoch;
+ final int start = new DateTime.now().millisecondsSinceEpoch;
- int cur = new Date.now().millisecondsSinceEpoch;
+ int cur = new DateTime.now().millisecondsSinceEpoch;
while ((cur - start) < 1000) {
test_();
- cur = new Date.now().millisecondsSinceEpoch;
+ cur = new DateTime.now().millisecondsSinceEpoch;
runs++;
}
« no previous file with comments | « samples/third_party/dromaeo/common/BenchUtil.dart ('k') | samples/time/time_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698