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

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

Issue 10538105: Make isUtc a getter, change some method names in Date. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 6 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/total/client/DateTimeUtils.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 1de9b7c2e75ecc6651cd58f8ff2c3a1e91853e75..9acd47ebf44394b44ca13363be43a199d64ccfbd 100644
--- a/samples/third_party/dromaeo/tests/RunnerSuite.dart
+++ b/samples/third_party/dromaeo/tests/RunnerSuite.dart
@@ -60,12 +60,12 @@ class Suite {
// more smoothly as well.
for (int i = 0; i < _N_RUNS; i++) {
int runs = 0;
- final int start = new Date.now().value;
+ final int start = new Date.now().millisecondsSinceEpoch;
- int cur = new Date.now().value;
+ int cur = new Date.now().millisecondsSinceEpoch;
while ((cur - start) < 1000) {
test_();
- cur = new Date.now().value;
+ cur = new Date.now().millisecondsSinceEpoch;
runs++;
}
« no previous file with comments | « samples/third_party/dromaeo/common/BenchUtil.dart ('k') | samples/total/client/DateTimeUtils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698