2007/6/28, Bruno Verlyck : > > Date: Thu, 28 Jun 2007 13:15:31 +0200 > From: "Matthieu Dubuget" > > Hi, > 2007/6/28, Karl Zilles : > > sayan@crans.org wrote: > > > I am looking for a floating point version of the function > > > Unix.sleep in order to suspend execution of a program for 0.7s > > Use select with no file_descrs. > Nice! Where are this kind of tricks supposed to be collected? > FAQ, http://www.ocaml-tutorial.org/, ...? > Any book / doc on Unix systems programming ? Fair answer. But I'm sure you understood my question, didn't you? I faced exactly the same problem as Sébastien. I had some OCaml code using Thread module, and, Thread.delay. Because of one bug in ocaml compilers, I can not use Thread module ( http://caml.inria.fr/mantis/view.php?id=4173). Not a very big problem after some thought, because the use of Thread was not absolutely necessary when using my Ocaml code wrapped inside a shared library. I then looked for a replacement for Thread.delay. I still needed to wait some (small amount of time) without pooling. Sorry if I'm not a unix guru, but the fact is that I did not find the Unix.select solution. So. Suppose there is some short tricks/recipes list about OCaml somewhere: it may save time to beginners looking for such things. I asked the question, because maybe, there is already such a place? (the caml-list archive since today, at least...) Salutations Matthieu Dubuget