tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Accurate clock
@ 1999-03-19  0:27 Jim Palfreyman
  0 siblings, 0 replies; only message in thread
From: Jim Palfreyman @ 1999-03-19  0:27 UTC (permalink / raw)
  To: tru64-unix-managers

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
________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-03-19  0:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-19  0:27 SUMMARY: Accurate clock Jim Palfreyman

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