OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include <time.h> | 5 #include <time.h> |
6 | 6 |
7 #include "vm/bootstrap_natives.h" | 7 #include "vm/bootstrap_natives.h" |
8 | 8 |
9 #include "vm/native_entry.h" | 9 #include "vm/native_entry.h" |
10 #include "vm/object.h" | 10 #include "vm/object.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 return Integer::New(offset); | 37 return Integer::New(offset); |
38 } | 38 } |
39 | 39 |
40 | 40 |
41 DEFINE_NATIVE_ENTRY(DateNatives_localTimeZoneAdjustmentInSeconds, 0) { | 41 DEFINE_NATIVE_ENTRY(DateNatives_localTimeZoneAdjustmentInSeconds, 0) { |
42 int adjustment = OS::GetLocalTimeZoneAdjustmentInSeconds(); | 42 int adjustment = OS::GetLocalTimeZoneAdjustmentInSeconds(); |
43 return Integer::New(adjustment); | 43 return Integer::New(adjustment); |
44 } | 44 } |
45 | 45 |
46 | 46 |
47 DEFINE_NATIVE_ENTRY(DateNatives_currentTimeMillis, 0) { | 47 DEFINE_NATIVE_ENTRY(DateNatives_currentTimeMicros, 0) { |
48 return Integer::New(OS::GetCurrentTimeMillis()); | 48 return Integer::New(OS::GetCurrentTimeMicros()); |
49 } | 49 } |
50 | 50 |
51 } // namespace dart | 51 } // namespace dart |
OLD | NEW |