From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=AWL autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 38B5ABC6B for ; Thu, 28 Jun 2007 17:04:00 +0200 (CEST) Received: from waco.inria.fr (waco.inria.fr [128.93.25.2]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5SF3xvI003187 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 28 Jun 2007 17:03:59 +0200 Received: from waco.inria.fr (localhost [127.0.0.1]) by waco.inria.fr (8.13.6/8.13.6) with ESMTP id l5SF3wfD032404; Thu, 28 Jun 2007 17:03:58 +0200 Received: (from verlyck@localhost) by waco.inria.fr (8.13.6/8.12.10/Submit) id l5SF3wBX032403; Thu, 28 Jun 2007 17:03:58 +0200 Date: Thu, 28 Jun 2007 17:03:58 +0200 Message-Id: <200706281503.l5SF3wBX032403@waco.inria.fr> From: Bruno Verlyck To: "Matthieu Dubuget" Cc: caml-list@yquem.inria.fr In-reply-to: <9f09a07a0706280415m3730487bl9fa9493148c03e9a@mail.gmail.com> (matthieu.dubuget@gmail.com) Subject: Re: [Caml-list] Waiting for float time From: Bruno.Verlyck@inria.fr References: <4682DCDF.5000301@crans.org> <4682E0A7.7030503@1969web.com> <9f09a07a0706280415m3730487bl9fa9493148c03e9a@mail.gmail.com> X-j-chkmail-Score: MSGID : 4683CDDF.000 on concorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at concorde with ID 4683CDDF.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; matthieu:01 dubuget:01 matthieu:01 dubuget:01 libc:01 syscalls:01 ocaml:01 28,:98 crans:98 wrote:01 faq:01 unix:01 unix:01 caml-list:01 functions:01 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 ? This use of select is standard, unix.cma is only a thin layer over libc and/or the syscalls (at least from a non-language specific POV). This is why the (Ocaml) unix library's documentation starts this way: Chapter 21 The unix library: Unix system calls The unix library makes many Unix system calls and system-related library functions available to Objective Caml programs. This chapter describes briefly the functions provided. Refer to sections 2 and 3 of the Unix manual for more details on the behavior of these functions. Bruno.