/* * Copyright (c) Meta Platforms, Inc. and affiliates. * All rights reserved. * * This source code is licensed under both the BSD-style license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COPYING file in the root directory of this source tree). * You may select, at your option, one of the above-listed licenses. */ /* The implementation lives in rust/src/timefn.rs, built into the Rust CLI * static archive. This translation unit stays in the original source lists so * build configuration keeps working while the implementation is in Rust. */ #include "timefn.h" /* The Rust port mirrors this exact ABI: UTIL_time_t is returned by value and * must remain a plain 64-bit nanosecond counter. */ typedef char UTIL_staticAssert_ptimeIs64Bit[(sizeof(PTime) == 8) ? 1 : -1]; typedef char UTIL_staticAssert_timeIsPlainCounter[ (sizeof(UTIL_time_t) == sizeof(PTime)) ? 1 : -1];