What is the maximum time this command can take to show the output.
I believe it’s whatever the DNS timeout is for your OS…
If you need speedy output, use ‘-pn’ so it returns the IP vs doing a DNS lookup for each server.
There may be additional time for the name resolution, otherwise, from the manual page of the command
timeout milliseconds Specify a timeout period for responses to server queries. The default is about 5000 milliseconds. Note that since ntpq retries each query once after a timeout, the total waiting time for a timeout will be twice the timeout value set.
Thank you for your replies.