(************************************************************************) (* * The Rocq Prover / The Rocq Development Team *) (* v * Copyright INRIA, CNRS and contributors *) (* <O___,, * (see version control and CREDITS file for authors & dates) *) (* \VV/ **************************************************************) (* // * This file is distributed under the terms of the *) (* * GNU Lesser General Public License Version 2.1 *) (* * (see LICENSE file for the text of the license) *) (************************************************************************)
(** Global CPU instruction counter. *)
(** [init ()] initialises, resets to 0, and starts the instruction counter. In caseofanerror,the[Failure]exceptionisraised,andthecounterstate isfullyre-initialisedsothat[init]maybecalledagain.Initialization
is required prior to calling the [drop] and [peek] functions. *) val init : unit -> unit
(** [drop ()] undoes the effect of [init], and frees all resources used by the internalstateoftheinstructioncounter.Notethatthecountermusthave
been initialised before calling [drop], otherwise [Failure] is raised. *) val drop : unit -> unit
(** [peek ()] reads the value of the instruction counter, which corresponds to thenumberofinstructionsrunbytheCPUsincethelast(successful)call to[init].Notethat[Failure]israisedincaseofanerror,includingif
the function is called while the counter is not initialised. *) val peek : unit -> Int64.t
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.6 Sekunden
(vorverarbeitet am 2026-09-29)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.