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
Waiting for float time
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Matthieu Dubuget <matthieu.dubuget@g...>
Subject: Re: [Caml-list] Waiting for float time
2007/6/28, Bruno Verlyck <>:
>    Date: Thu, 28 Jun 2007 13:15:31 +0200
>    From: "Matthieu Dubuget" <>
> Hi,
>    2007/6/28, Karl Zilles <>:
>    > 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,, ...?
> 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 (
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 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...)


Matthieu Dubuget