1// Copyright 2018 The Fuchsia Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#ifndef LIB_ASYNC_TIME_H_ 6#define LIB_ASYNC_TIME_H_ 7 8#include <lib/async/dispatcher.h> 9 10__BEGIN_CDECLS 11 12// Returns the current time in the dispatcher's timebase. 13// For most loops, this is generally obtained from |ZX_CLOCK_MONOTONIC| 14// but certain loops may use a different tiembase, notably for testing. 15zx_time_t async_now(async_dispatcher_t* dispatcher); 16 17__END_CDECLS 18 19#endif // LIB_ASYNC_TIME_H_