blob: c800099cf0f90c761e5278e280f90d3819ec12d3 [file] [log] [blame] [edit]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef LIB_ASYNC_TIME_H_
#define LIB_ASYNC_TIME_H_
#include <lib/async/dispatcher.h>
__BEGIN_CDECLS
// Returns the current time in the dispatcher's timebase.
// For most loops, this is generally obtained from |ZX_CLOCK_MONOTONIC|
// but certain loops may use a different tiembase, notably for testing.
zx_time_t async_now(async_dispatcher_t* dispatcher);
__END_CDECLS
#endif // LIB_ASYNC_TIME_H_