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 07:38:17 +02:00
committed by GitHub
parent 39f42bc11d
commit 4c438bd4d3
4 changed files with 103 additions and 2 deletions

View File

@@ -36,3 +36,19 @@ Specifies how long to wait for a ping to complete.
| Type | <code>int</code> |
Specifies the number of pings to perform. By default, pings will continue until interrupted.
### --time
| | |
|------|-------------------|
| Type | <code>bool</code> |
Show the response time of each pong in local time.
### --utc
| | |
|------|-------------------|
| Type | <code>bool</code> |
Show the response time of each pong in UTC (implies --time).