9.5k views
1 vote
A clock is reading 10:27:54.0 (hr:min:sec) when it is discovered to be 4 seconds fast. Explain why it is undesirable to set it back to the right time at that point and show (numerically) how it should be adjusted so as to be correct after 8 seconds have elapsed?

User Jaydo
by
4.3k points

1 Answer

1 vote

Answer:

(a)Applications Time Stamp Events

(b)S=0.5(W-[Tex]T_{skew}[/tex])+[Tex]T_{skew}[/tex], where [Tex]T_{skew}[/tex]≤W≤[Tex]T_{skew}[/tex]+8.

Step-by-step explanation:

Some applications assume that clocks always advance, so they could timestamp events under this assumption.

In our case we have the wrong timed clock, say W and the hardware clock H which is supposed to advance at a perfect rate.

We proceed to construct a software clock such that after 8 seconds we can replace the wrong timed clock with the software clock in good conditions.

Let us denote the software clock with S.

Then, S=c(W-[Tex]T_{skew}[/tex])+[Tex]T_{skew}[/tex] where:

[Tex]T_{skew}[/tex]=The current Time(10:27:54) and;

c is to be found.

We already know that S=[Tex]T_{skew}[/tex]+4 when W= [Tex]T_{skew}[/tex]+8,

So:

S=c(W-[Tex]T_{skew}[/tex])+[Tex]T_{skew}[/tex]

[Tex]T_{skew}[/tex]+4=c([Tex]T_{skew}[/tex]+8-[Tex]T_{skew}[/tex])+[Tex]T_{skew}[/tex]

4=8c

c=0.5

We obtain the formula

S=0.5(W-[Tex]T_{skew}[/tex])+[Tex]T_{skew}[/tex], where [Tex]T_{skew}[/tex]≤W≤[Tex]T_{skew}[/tex]+8.

User SaWo
by
5.3k points