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

Side by Side Diff: runtime/bin/utils_android.cc

Issue 1537063002: Initialize standalone embedder's copy of the monotonic clock on Windows. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
« no previous file with comments | « runtime/bin/utils.h ('k') | runtime/bin/utils_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « runtime/bin/utils.h ('k') | runtime/bin/utils_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698