OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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_FUCHSIA) | 6 #if defined(HOST_OS_FUCHSIA) |
7 | 7 |
8 #include <errno.h> | 8 #include <errno.h> |
9 #include <magenta/syscalls.h> | 9 #include <magenta/syscalls.h> |
10 #include <magenta/types.h> | 10 #include <magenta/types.h> |
11 | 11 |
12 #include "bin/utils.h" | 12 #include "bin/utils.h" |
13 #include "platform/assert.h" | 13 #include "platform/assert.h" |
14 #include "platform/utils.h" | 14 #include "platform/utils.h" |
15 | 15 |
16 namespace dart { | 16 namespace dart { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 | 98 |
99 void TimerUtils::Sleep(int64_t millis) { | 99 void TimerUtils::Sleep(int64_t millis) { |
100 mx_nanosleep(millis * kMicrosecondsPerMillisecond * | 100 mx_nanosleep(millis * kMicrosecondsPerMillisecond * |
101 kNanosecondsPerMicrosecond); | 101 kNanosecondsPerMicrosecond); |
102 } | 102 } |
103 | 103 |
104 } // namespace bin | 104 } // namespace bin |
105 } // namespace dart | 105 } // namespace dart |
106 | 106 |
107 #endif // defined(TARGET_OS_FUCHSIA) | 107 #endif // defined(HOST_OS_FUCHSIA) |
OLD | NEW |