blob: b8551887677fd4942621e55c8ad7d7df808d684e [file] [log] [blame]
// 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_FZL_TIME_H_
#define LIB_FZL_TIME_H_
#include <zircon/types.h>
#ifdef __cplusplus
#include <lib/zx/time.h>
namespace fzl {
zx::ticks NsToTicks(zx::duration ns);
zx::duration TicksToNs(zx::ticks ticks);
} // namespace fzl
#endif // _cplusplus
__BEGIN_CDECLS
zx_ticks_t ns_to_ticks(zx_duration_t ns);
zx_duration_t ticks_to_ns(zx_ticks_t ticks);
__END_CDECLS
#endif // LIB_FZL_TIME_H_