2017-09-25 06:47:30 +00:00
|
|
|
# Copyright 2017 syzkaller project authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
include <zircon/syscalls.h>
|
|
|
|
|
|
|
|
resource zx_time[int64]: 0, ZX_TIME_INFINITE
|
|
|
|
|
|
|
|
zx_nanosleep(deadline zx_time)
|
2019-07-17 00:09:43 +00:00
|
|
|
zx_clock_get(clock_id flags[clock_id], zx_time ptr[out, intptr])
|
2018-07-04 02:53:42 +00:00
|
|
|
zx_clock_get_monotonic()
|
2017-09-25 06:47:30 +00:00
|
|
|
zx_ticks_get()
|
|
|
|
zx_ticks_per_second()
|
2019-04-22 18:08:29 +00:00
|
|
|
zx_deadline_after(ns int64) zx_time
|
2017-09-25 06:47:30 +00:00
|
|
|
|
|
|
|
# TODO: undocumented
|
|
|
|
# zx_clock_adjust?
|
|
|
|
|
2017-10-16 17:23:13 +00:00
|
|
|
syz_future_time(when intptr[0:1]) zx_time
|
|
|
|
|
2017-09-25 06:47:30 +00:00
|
|
|
clock_id = ZX_CLOCK_MONOTONIC, ZX_CLOCK_UTC, ZX_CLOCK_THREAD
|