| 1 | (************************************************************************) |
| 2 | (* * The Rocq Prover / The Rocq Development Team *) |
| 3 | (* v * Copyright INRIA, CNRS and contributors *) |
| 4 | (* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 | (* \VV/ **************************************************************) |
| 6 | (* // * This file is distributed under the terms of the *) |
| 7 | (* * GNU Lesser General Public License Version 2.1 *) |
| 8 | (* * (see LICENSE file for the text of the license) *) |
| 9 | (************************************************************************) |
| 10 | |
| 11 | (** Platform-specific Implementation of a global instruction counter. *) |
| 12 | |
| 13 | (** [read_counter ()] returns the current value of the instruction counter, or |
| 14 | an error message indicating why it could not be obtained. Note that counts |
| 15 | returned by this function are not meaningful in absolute terms. To measure |
| 16 | how many instructions it takes to run a piece of code, read the counter at |
| 17 | the start and at the end, and compute the difference. *) |
| 18 | val read_counter : unit -> (Int64.t, string) Result.t |