On Tue, Dec 14, 2004 at 01:17:01PM -0500, Lars Nilsson wrote: > On Tue, 14 Dec 2004 17:38:50 +0000, Keith Wansbrough > wrote: > > Thread.delay > > Unix.time > > Unix.localtime > > Or Unix.select instead of Thread.delay, for that tried-and-true > solution that will give you sub-second sleep capability. > > ignore(Unix.select [] [] [] 0.5) Here is my simple clock in Ocaml. Have I done it right? Any comments? Particularly, the while, print_tm and print_newline execution time is not counted. Would that introduce an accurace in my clock? If so, is that inevitable? Romildo