123456789101112131415161718192021222324252627282930(**************************************************************************)(* This file is part of the Codex semantics library. *)(* *)(* Copyright (C) 2013-2025 *)(* CEA (Commissariat à l'énergie atomique et aux énergies *)(* alternatives) *)(* *)(* you can redistribute it and/or modify it under the terms of the GNU *)(* Lesser General Public License as published by the Free Software *)(* Foundation, version 2.1. *)(* *)(* It is distributed in the hope that it will be useful, *)(* but WITHOUT ANY WARRANTY; without even the implied warranty of *)(* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *)(* GNU Lesser General Public License for more details. *)(* *)(* See the GNU Lesser General Public License version 2.1 *)(* for more details (enclosed in the file LICENSE). *)(* *)(**************************************************************************)(** A very simple benchmarking API. *)(** By default OCaml uses floats to record dates, which makes me worry
about precision. This simple C API does not have this defect.
bench_return_time returns the number of microseconds since the last
call to bench_record_time. *)externalrecord_time:unit->unit="libase_record_time";;externalreturn_time:unit->int="caml_libase_return_time";;