Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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