by shockeychap · 3y ago · 0 comments
"Time passes at the same speed on top of a mountain and at the bottom of a valley"
Unless you're writing software used to track very intense scientific measurements requiring information about time down to the sub-nanosecond, I don't see how the effects of time dilation between a mountain and valley would ever have an effect on program logic.
Everything else about time can and will bite you at one time or another.
>>> g = 9.8 c = 299_792_458
>>> h = 4392 # height of Mt. Rainier
>>> drift_per_second = (g*h)/(c**2)
>>> print(drift_per_second)
4.789023865263744e-13
>>> nanosecond = 1.0e-9
>>> seconds_to_drift_one_ns = nanosecond / drift_per_second
>>> print(seconds_to_drift_one_ns)
2088.1081993625176
>>> print(seconds_to_drift_one_ns / 60) # minutes till a 1 ns drift accumulates
34.80180332270863
>>> print((seconds_to_drift_one_ns * 1000) / 60 / 60 / 24) # days till ~1 microsecond accumulates
24.167918974103213
[0] - http://www.leapsecond.com/great2016a/#%3A~%3Atext%3DConceptu...Something like 59 micro-seconds per 10 million frequent flier miles.