From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079038515783.tru64-unix-managers.marc@archive.invalid> From: Jim Palfreyman Date: Fri, 19 Mar 1999 00:27:48 +0000 To: tru64-unix-managers Subject: SUMMARY: Accurate clock X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079038515783 The original query: ------------------------------------------------------------------------ G'day, Our hosts all run xntpd and keep nice accurate time - very close to an atomic clock. What I want is some software (preferably something nice and graphical and pretty) that displays the system clock *accurately*. Various software that exists already (e.g. digital clock on the CDE desktop) display the time every second, but the ticking over of seconds start from the instant the application started and not as the actual real time second click over. (Start a number of them up if you don't believe me) The closest quick thing I can get is under csh: while(1) date end Any ideas? ------------------------------------------------------------------------ The only reply was from "Kevin Oberman" who provided this perl script: #!/usr/local/bin/perl require 'ctime.pl'; my ($time, @ctime); $| = 1; while(1) { $time = time; until ($time != time) {next;} @ctime = split (' ', &ctime(time)); print "\007", $ctime[3], "\r"; select (undef, undef, undef, .95); } which does the job effectively. Unfortunately it seems that no pretty clock programs out there have such a concept in their code. If I have time (hah!), I may whip one up... Jim -- ________________________________________________________________________ Jim Palfreyman Information Management Branch _--_|\ I have a jim@jim.ecc.tased.edu.au Department of Education / \ PGP key phone: +61 3 6233 6900 2nd Floor 73 Murray Street \_.--._/ and I be fax: +61 3 6233 6969 Hobart TAS 7000 Australia v <-- 'ere ________________________________________________________________________