diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-07-30 11:17:44 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-07-30 11:17:44 +0200 |
| commit | b8bd991ee2f77d225913d41c57b9a420b4559900 (patch) | |
| tree | c22f43364ce37ca765773db94f24716bbe4a8078 /executor/common_windows.h | |
| parent | 1a381291a38fbca36a7fd1ca142e4cee7794e3b1 (diff) | |
executor: make current_time_ms/sleep_ms
Fix conditions for when current_time_ms/sleep_ms are used
and make them static.
Diffstat (limited to 'executor/common_windows.h')
| -rw-r--r-- | executor/common_windows.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/executor/common_windows.h b/executor/common_windows.h index 1aada0933..b5520197f 100644 --- a/executor/common_windows.h +++ b/executor/common_windows.h @@ -19,14 +19,14 @@ static void install_segv_handler() } #endif -#if SYZ_EXECUTOR || SYZ_REPEAT -uint64 current_time_ms() +#if SYZ_EXECUTOR || SYZ_THREADED || SYZ_REPEAT && SYZ_EXECUTOR_USES_FORK_SERVER +static uint64 current_time_ms() { return GetTickCount64(); } #endif -#if SYZ_EXECUTOR || SYZ_THREADED || SYZ_REPEAT +#if SYZ_EXECUTOR || SYZ_THREADED || SYZ_REPEAT && SYZ_EXECUTOR_USES_FORK_SERVER static void sleep_ms(uint64 ms) { Sleep(ms); |
