feat(cli): add local and UTC time options to ping cmd (#16648)

It's sometimes useful to see when each pong was received, for
correlating these times with other events.

---------

Signed-off-by: Danny Kopping <danny@coder.com>
This commit is contained in:
Danny Kopping
2025-02-24 05:38:17 +00:00
committed by GitHub
parent 39f42bc11d
commit 4c438bd4d3
4 changed files with 103 additions and 2 deletions
+6
View File
@@ -10,9 +10,15 @@ OPTIONS:
Specifies the number of pings to perform. By default, pings will
continue until interrupted.
--time bool
Show the response time of each pong in local time.
-t, --timeout duration (default: 5s)
Specifies how long to wait for a ping to complete.
--utc bool
Show the response time of each pong in UTC (implies --time).
--wait duration (default: 1s)
Specifies how long to wait between pings.