Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
gestion du temps en Caml ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1998-02-19 (16:38)
From: Pierre Weis <Pierre.Weis@i...>
Subject: Re: gestion du temps en Caml ?
En Caml Light 0.74: la fonction sys__time : unit -> float donne le
temps e'coule' depuis le lancement du programme (ou du syste`me
Sous Unix, vous pouvez aussi utiliser l'interface avec le syste`me
(module unix, fonction unix__time pour Caml Light et Unix.time pour
Objective Caml).

If you use Caml Light 0.74: the sys__time : unit -> float function
returns the elapsed time since the beginning of the execution.
Alternatively, under Unix, you may use the Unix module that provides
an interface to the operating system (unix__time for Caml Light, or
Unix.time for Objective Caml).

Pierre Weis

INRIA, Projet Cristal,,