Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 /* | 7 /* |
| 8 * NaCl Server Runtime time abstraction layer. | 8 * NaCl Server Runtime time abstraction layer. |
| 9 * This is the host-OS-dependent implementation. | 9 * This is the host-OS-dependent implementation. |
| 10 */ | 10 */ |
| 11 | 11 |
| 12 /* Make sure that winmm.lib is added to the linker's input. */ | 12 /* Make sure that winmm.lib is added to the linker's input. */ |
| 13 #pragma comment(lib, "winmm.lib") | 13 #pragma comment(lib, "winmm.lib") |
| 14 | 14 |
| 15 #include <windows.h> | 15 #include <windows.h> |
| 16 #include <intrin.h> | |
|
Roland McGrath
2016/03/08 21:58:25
Sort #include's per style guide.
Nico
2016/03/08 22:03:37
The rest of the includes is sorted with windows.h
Roland McGrath
2016/03/08 22:05:31
OK. If <windows.h> first is a normal exception to
| |
| 16 #include <mmsystem.h> | 17 #include <mmsystem.h> |
| 17 #include <sys/timeb.h> | 18 #include <sys/timeb.h> |
| 18 #include <time.h> | 19 #include <time.h> |
| 19 | 20 |
| 20 #include "native_client/src/include/nacl_macros.h" | 21 #include "native_client/src/include/nacl_macros.h" |
| 21 #include "native_client/src/shared/platform/nacl_time.h" | 22 #include "native_client/src/shared/platform/nacl_time.h" |
| 22 #include "native_client/src/shared/platform/win/nacl_time_types.h" | 23 #include "native_client/src/shared/platform/win/nacl_time_types.h" |
| 23 | 24 |
| 24 #include "native_client/src/shared/platform/nacl_log.h" | 25 #include "native_client/src/shared/platform/nacl_log.h" |
| 25 #include "native_client/src/shared/platform/nacl_sync.h" | 26 #include "native_client/src/shared/platform/nacl_sync.h" |
| (...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 488 } | 489 } |
| 489 } | 490 } |
| 490 NaClLog(4, "Resolution gap %d\n", resolution_gap); | 491 NaClLog(4, "Resolution gap %d\n", resolution_gap); |
| 491 sleep_ms += resolution_gap; | 492 sleep_ms += resolution_gap; |
| 492 | 493 |
| 493 NaClLog(4, "Sleep(%d)\n", sleep_ms); | 494 NaClLog(4, "Sleep(%d)\n", sleep_ms); |
| 494 Sleep(sleep_ms); | 495 Sleep(sleep_ms); |
| 495 | 496 |
| 496 return 0; | 497 return 0; |
| 497 } | 498 } |
| OLD | NEW |