tcping icon indicating copy to clipboard operation
tcping copied to clipboard

add time in output line please

Open liker5092 opened this issue 1 year ago • 2 comments

as the title !!

liker5092 avatar Jul 10 '24 09:07 liker5092

I am not quite sure if I understand what you need. Please provide an example.

pouriyajamshidi avatar Jul 10 '24 14:07 pouriyajamshidi

image

FYI

display time per line.

liker5092 avatar Jul 15 '24 01:07 liker5092

I'm not sure what value this brings to the tool in general.

The output of tcping tries to follow the ping utility of Linux.

pouriyajamshidi avatar Jul 20 '24 08:07 pouriyajamshidi

I'm not sure what value this brings to the tool in general.

The output of tcping tries to follow the ping utility of Linux.

Here it is:

       -D
           Print timestamp (unix time + microseconds as in gettimeofday)
           before each line.

https://www.man7.org/linux/man-pages/man8/ping.8.html

Sample output from ping on linux:

[1721793663.361009] 64 bytes from xxx.xxx.xxx.xxx: icmp_seq=43177 ttl=121 time=7.69 ms
[1721793664.362074] 64 bytes from xxx.xxx.xxx.xxx: icmp_seq=43178 ttl=121 time=7.63 ms
[1721793677.634183] 64 bytes from xxx.xxx.xxx.xxx: icmp_seq=43191 ttl=121 time=7.69 ms
[1721793678.636049] 64 bytes from xxx.xxx.xxx.xxx: icmp_seq=43192 ttl=121 time=7.78 ms
[1721793679.638207] 64 bytes from xxx.xxx.xxx.xxx: icmp_seq=43193 ttl=121 time=8.08 ms

It is extremely useful if you leave some remote machines being pinged for hours and then need to check if there was any loss at a specific time.

The idea is great, I use it a lot, but timestamping with unix time is not very practical, it could even be the default, but it could offer a more human readable format as well.

navossoc avatar Jul 29 '24 02:07 navossoc

I see! Was not aware of that option.

Although, you can still get the same information by pressing the Enter key while tcping is running. will show you when was the last failure.

I will see how much work it is to have this implemented.

pouriyajamshidi avatar Jul 29 '24 15:07 pouriyajamshidi

Hii @pouriyajamshidi could I take this up as a first issue?

Ilhan-Personal avatar Aug 02 '24 16:08 Ilhan-Personal

Hi @SYSHIL,

Sure, please go ahead.

pouriyajamshidi avatar Aug 02 '24 17:08 pouriyajamshidi

Implemented in #225

pouriyajamshidi avatar Aug 23 '24 16:08 pouriyajamshidi