* My Speaking Clock doesnt actually speak - you have to do the talking yourself. Would it be easier, in a radio broadcast studio, for presenters to read the time from a display like this, than from a conventional clock? Unlike the clock on the BBC's web site (see news item here) my clock is accurate!.
|
If this text appears for more than a fleeting moment then something may have gone wrong, e.g.
|
|
This Clock is AccurateThis web page will attempt to obtain an accurate time setting from the web server. If this message alters, it has been successful. Your computer's local clock may well be wrong. Correcting Your Computer's Internal ClockYou can correct the time on your computer by running an application that synchronises your machine to a time server. In Windows XP and later versions, this is built-in facility.
How my Speaking Clock Works14 June 2013: Why does the BBC state that "technical complexities" are preventing their web site clock from working? - see here. It cannot possibly take 100 man-days of programming for them to do what Ive just (more-or-less) done in (more-or-less) an afternoon!
RefinementsUsing Canvas is the weak point, because not all versions of Internet Explorer support this function - you need at least version 9. However, Firefox, Opera, Chrome, and Safari all support the canvas element. There are other refinements possible, but the last 10% of the work always takes 90% of the time so I'll leave these for now. One problem is how often to correct the drift? At the moment, the clock refreshes its time every few minutes, which seems a good compromise (for a rarely-visited page like this) between overburdening the server and accumulating a noticable error - some PC clocks drift quite fast. Another point to note is the accuracy of the time on the web server. The server itself is synchronised to an accurate time standard but simply "asking it the time" will not result in a perfectly accurate answer, because of delays in the network, and the time taken for the server (and your computer) to process the data. When your computer establishes a 'formal' link with a time server (using the SNTP protocol) these delays are measured and compensated for. In my software, the much simpler act of saying, in JavaScript, "just remind me of the server time" is less accurate, but probably good enough for the intended purpose. CopyrightThis set of computer files is copyright David Gibson 1999 and 2013, where indicated. Design Right to this product, as set out in the Copyright, Designs and Patents Act 1988, is owned by David Gibson. Visit my Home Page. |
This page, http://site2.caves.org.uk/clock/index.html was last modified on Sun, 09 Sep 2018 10:48:46 +0000
(Running on britiac3 at 31.25.186.126)