zlacker

[return to "Pushing the whole company into the past on purpose"]
1. nonran+OM[view] [source] 2025-01-10 08:27:29
>>senkor+(OP)
Nice descriptive article. I've done this on purpose too to debug remote filesystem syncs and cryptography problems where machines are out of sync. My GPS wall clock is handy for adjusting NTP, but the time it takes to scan my eyes from the wall back to the monitor.. you really do need two stacked like she did. So I now figured to use transparrent terminals each logged into a different host and lay them over one another running "watch -n1 date".

Would have been nice to have some more network, code and command line examples. You need to set up a local ntpd and need to point your local master at that temporarily. A better utility to write would be "timediff -s1 -s2" that takes two time servers and shows the offset. I bet there's a way to do that in one line. Anyone?

◧◩
2. fishst+XV6[view] [source] 2025-01-12 22:01:05
>>nonran+OM
> watch -n1 date

Um, that's a pretty inaccurate way to notice an offset in the millisecond range, isn't it?

◧◩◪
3. nonran+N87[view] [source] 2025-01-12 23:30:34
>>fishst+XV6
That doesn't even show ms. Add something like +%s%N (ns) to the options if you want finer resolution.
◧◩◪◨
4. mkl+nk7[view] [source] 2025-01-13 01:11:42
>>nonran+N87
The problem is using watch you have no control* over when in each second it's getting the time, so it could be nearly a second late (e.g. it's getting the time once per second, but happens to be doing it when it's a few milliseconds away from ticking over to the next second).

* Okay, you have a little control in that you can press enter, or otherwise set it running, at a particular moment.

[go to top]