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: 2007-06-28 (15:04)
Subject: Re: [Caml-list] Waiting for float time
   Date: Thu, 28 Jun 2007 13:15:31 +0200
   From: "Matthieu Dubuget" <>

   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 ?  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.