blog:articles:software:lunaclockpub
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
blog:articles:software:lunaclockpub [2024/04/15 12:24] – [Lunar Clock Published] Phil Ide | blog:articles:software:lunaclockpub [2024/07/28 14:53] (current) – [Lunar Clock Published] Phil Ide | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~NOCACHE~~ | ||
====== Lunar Clock Published ====== | ====== Lunar Clock Published ====== | ||
- | The lunar clock has a new name: '' | + | The lunar clock has a new name: '' |
The code has now been published on GitHub at https:// | The code has now been published on GitHub at https:// | ||
I have decided not to turn the program into an NTP server, since that is non-trivial task. If someone thinks that would be a great idea (I no longer think so), they can take existing NTP code and amend it. | I have decided not to turn the program into an NTP server, since that is non-trivial task. If someone thinks that would be a great idea (I no longer think so), they can take existing NTP code and amend it. | ||
+ | |||
+ | ===== Recent Updates ===== | ||
+ | {{rss> | ||
+ | |||
===== New Philosophy ===== | ===== New Philosophy ===== | ||
Line 19: | Line 24: | ||
As mentioned above, there is a configuration file. When the program is first run it will look for it, and if not found it will create it with sensible default values. If the configuration file is manually edited, the program will need to be restarted to load the new values. The only exception is the //private epoch//, which if changed via the '' | As mentioned above, there is a configuration file. When the program is first run it will look for it, and if not found it will create it with sensible default values. If the configuration file is manually edited, the program will need to be restarted to load the new values. The only exception is the //private epoch//, which if changed via the '' | ||
+ | |||
+ | ===== Uses ===== | ||
+ | |||
+ | For this part of the discussion, image we are on Earth' | ||
+ | |||
+ | If there is an experiment that is going to timestamp the results (or the data it has just collected), it grabs a timestamp from its own system clock. This clock has drifted from Earth-UTC due to relativistic effects as a result of the lower gravity. It sends that timestamp to the RPC server which adjusts it so it now represents the same moment in Earth-UTC. | ||
+ | |||
+ | Since there is a processing delay while the RPC server adjusts the timestamp, the RPC server cannot be used as a clock with a granularity less than a microsecond. A program that represents a clock (e.g. displaying the time and updating in real-time) must take this into consideration. However, it can make its own adjustments if it notes the turnaround time between requesting the adjusted time and receiving it - but the process of applying the secondary adjustment of the turnaround time is also time expensive. Nonetheless, | ||
+ | |||
+ | ~~socialite~~ | ||
+ | ~~DISCUSSION~~ | ||
+ |
blog/articles/software/lunaclockpub.1713183895.txt.gz · Last modified: 2024/04/15 12:24 by Phil Ide