From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 0D332BB81 for ; Tue, 14 Dec 2004 18:13:03 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id iBEHD2gx000884 for ; Tue, 14 Dec 2004 18:13:02 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA27966 for ; Tue, 14 Dec 2004 18:13:01 +0100 (MET) From: romildo@uber.com.br Received: from gentoo.malaquias.no-ip.org (233-139-232.xdsl-dinamico.ctbcnetsuper.com.br [200.233.139.232]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id iBEHCxGL012046 for ; Tue, 14 Dec 2004 18:13:01 +0100 Received: by gentoo.malaquias.no-ip.org (Postfix, from userid 500) id 005A1797B46; Tue, 14 Dec 2004 15:17:17 -0200 (BRST) Date: Tue, 14 Dec 2004 15:17:17 -0200 To: caml-list@inria.fr Subject: Simple clock Message-ID: <20041214171716.GA10373@gentoo.malaquias.no-ip.org> Mail-Followup-To: caml-list@inria.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i X-Miltered: at nez-perce with ID 41BF1F1E.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 41BF1F1B.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; romildo:01 ocaml:01 sugestions:01 romildo:01 output:02 implement:05 console:10 something:12 clock:12 clock:12 but:12 hello:17 would:17 would:17 receive:82 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.2 required=5.0 tests=FORGED_RCVD_HELO,NO_REAL_NAME autolearn=disabled version=3.0.0 X-Spam-Level: Hello. I am willing to write a very very simple clock in OCaml, but do not know exactly how to do it. I would like to start with a console program that just prints the current time every second. The output would be something like the following: $ simpleclock 15:15:58 15:15:59 15:16:00 15:16:01 I want to receive sugestions on how to implement this. Regards, Romildo