How do you retrieve the current time on a server?
Check " man date ". You can let it display you the hours, minutes, seconds and nanoseconds with
date +%H:%M:%S.%N
See the output of
while : ; do date +%H:%M:%S.%N ; done
interrupt the infinite while loop with CTRL+C .
If you want less decimal places you could do
while : ; do date +%H:%M:%S.%N | cut -c 1-12 ; done
Increase or decrease the output length changing the "12" on "-c 1-12" after cut.