tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Jim Palfreyman <jim () jim ! ecc ! tased ! edu ! au>
To: tru64-unix-managers
Subject: SUMMARY: Accurate clock
Date: Fri, 19 Mar 1999 00:27:48 +0000	[thread overview]
Message-ID: <96079038515783.tru64-unix-managers.marc@archive.invalid> (raw)

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" <oberman@es.net> 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
________________________________________________________________________

                 reply	other threads:[~1999-03-19  0:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox