diff options
author | Bruce A. Mah <bmah@es.net> | 2020-07-23 07:52:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-23 07:52:46 -0700 |
commit | 1a908ce13ea7b585d2e7ac315e3ef3e4bc8db560 (patch) | |
tree | d1449db4838b0a5239b1f04abc6b4b2c5732ad46 /src/iperf_locale.c | |
parent | d5d2e2473f449752aaa55bf1b0589868cc950eb2 (diff) | |
download | iperf3-1a908ce13ea7b585d2e7ac315e3ef3e4bc8db560.tar.gz |
feat: Add a --timestamps flag to prepend a timestamp per output line. (#1028)
This flag takes an optional argument, which is a format specification to strftime(3)...this allows for custom timestamp formats. Based on a suggested implementation by @davidBar-On. Towards #909.
Diffstat (limited to 'src/iperf_locale.c')
-rw-r--r-- | src/iperf_locale.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/iperf_locale.c b/src/iperf_locale.c index 8d6dd0b..d5a5354 100644 --- a/src/iperf_locale.c +++ b/src/iperf_locale.c @@ -109,6 +109,9 @@ const char usage_longstr[] = "Usage: iperf3 [-s|-c host] [options]\n" " -J, --json output in JSON format\n" " --logfile f send output to a log file\n" " --forceflush force flushing output at every interval\n" + " --timestamps <format> emit a timestamp at the start of each output line\n" + " (using optional format string as per strftime(3))\n" + " -d, --debug emit debugging output\n" " -v, --version show version information and quit\n" " -h, --help show this message and quit\n" |