English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Simple clock
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-12-14 (17:13)
From: romildo@u...
Subject: Simple clock
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