summaryrefslogtreecommitdiff
path: root/stdlib/sys.mli
diff options
context:
space:
mode:
authorPierre Weis <Pierre.Weis@inria.fr>1998-02-25 10:20:38 +0000
committerPierre Weis <Pierre.Weis@inria.fr>1998-02-25 10:20:38 +0000
commitb5ae8a0a0ae5b27ee77779ef43607a9edc5086ac (patch)
treea7ff4f4ef27fa6ce78537b1a604eca8f9d67afa3 /stdlib/sys.mli
parent85bae36901fe710f071d0bddc4b3960ed8dbbdd1 (diff)
downloadocaml-b5ae8a0a0ae5b27ee77779ef43607a9edc5086ac.tar.gz
Introduction des fonctions de timing.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1875 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'stdlib/sys.mli')
-rw-r--r--stdlib/sys.mli3
1 files changed, 3 insertions, 0 deletions
diff --git a/stdlib/sys.mli b/stdlib/sys.mli
index 9e081a684c..53f6c5c496 100644
--- a/stdlib/sys.mli
+++ b/stdlib/sys.mli
@@ -29,6 +29,9 @@ external getenv: string -> string = "sys_getenv"
environment. Raise [Not_found] if the variable is unbound. *)
external command: string -> int = "sys_system_command"
(* Execute the given shell command and return its exit code. *)
+external time: unit -> float = "sys_time"
+ (* Return the processor time, in seconds, used by the program
+ since the beginning of execution. *)
external chdir: string -> unit = "sys_chdir"
(* Change the current working directory of the process. *)
external getcwd: unit -> string = "sys_getcwd"