| 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 "platform/globals.h" | 5 #include "platform/globals.h" |
| 6 #if defined(TARGET_OS_ANDROID) | 6 #if defined(TARGET_OS_ANDROID) |
| 7 | 7 |
| 8 #include <errno.h> // NOLINT | 8 #include <errno.h> // NOLINT |
| 9 #include <netdb.h> // NOLINT | 9 #include <netdb.h> // NOLINT |
| 10 #include <sys/time.h> // NOLINT | 10 #include <sys/time.h> // NOLINT |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 char* StringUtils::Utf8ToConsoleString( | 64 char* StringUtils::Utf8ToConsoleString( |
| 65 char* utf8, intptr_t len, intptr_t* result_len) { | 65 char* utf8, intptr_t len, intptr_t* result_len) { |
| 66 UNIMPLEMENTED(); | 66 UNIMPLEMENTED(); |
| 67 return NULL; | 67 return NULL; |
| 68 } | 68 } |
| 69 | 69 |
| 70 bool ShellUtils::GetUtf8Argv(int argc, char** argv) { | 70 bool ShellUtils::GetUtf8Argv(int argc, char** argv) { |
| 71 return false; | 71 return false; |
| 72 } | 72 } |
| 73 | 73 |
| 74 void TimerUtils::InitOnce() { |
| 75 } |
| 76 |
| 74 int64_t TimerUtils::GetCurrentMonotonicMillis() { | 77 int64_t TimerUtils::GetCurrentMonotonicMillis() { |
| 75 return GetCurrentMonotonicMicros() / 1000; | 78 return GetCurrentMonotonicMicros() / 1000; |
| 76 } | 79 } |
| 77 | 80 |
| 78 int64_t TimerUtils::GetCurrentMonotonicMicros() { | 81 int64_t TimerUtils::GetCurrentMonotonicMicros() { |
| 79 struct timespec ts; | 82 struct timespec ts; |
| 80 if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) { | 83 if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) { |
| 81 UNREACHABLE(); | 84 UNREACHABLE(); |
| 82 return 0; | 85 return 0; |
| 83 } | 86 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 106 ASSERT(errno == EINTR); | 109 ASSERT(errno == EINTR); |
| 107 // Copy remainder into requested and repeat. | 110 // Copy remainder into requested and repeat. |
| 108 req = rem; | 111 req = rem; |
| 109 } | 112 } |
| 110 } | 113 } |
| 111 | 114 |
| 112 } // namespace bin | 115 } // namespace bin |
| 113 } // namespace dart | 116 } // namespace dart |
| 114 | 117 |
| 115 #endif // defined(TARGET_OS_ANDROID) | 118 #endif // defined(TARGET_OS_ANDROID) |
| OLD | NEW |