I found an explanation of time dilation using a light-pulse clock in the book 'Concepts of modern physics' by Arthur Beiser. :
In
In this explanation, the clock is moving in a direction perpendicular to the light ray. What if the clock is moving in the direction of light ray. Will the time dilation changeschange? How can we see the time dilated in this case?