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-27 (21:55)
From: sayan@c...
Subject: Waiting for float time

I am looking for a floating point version of the function Unix.sleep in
order to suspend execution of a program for 0.7s

Is there any such function in the standard library ?

Is there a solution outside of Threads, and GTK ?

I have looked at Unix.interval_timer but I'd rather not use it. From
what I understand, you have to add a signal handler to catch sigalrm,
and I do not see how to create a sleep function using it.

Is there a multiplatform solution ?