Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Suggestions ➜ Helpful Idea

Helpful Idea

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by David Berthiaume   (202 posts)  Bio
Date Thu 13 Jul 2006 08:11 AM (UTC)
Message
I don't think this'll be too difficult to add... And it would be very helpful for scripters who require very prescise timing.

When you hover your mouse over a line, you get the time and date stamp.

What I would like to see is also a time between one line and the next in millisecond format.

I.E. From line 1, to line 2, how much time passed between the two, 500 milliseconds, 5 seconds, 1500 milliseconds... Ya know what I mean?
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #1 on Thu 13 Jul 2006 09:33 PM (UTC)
Message
Can you clarify, you want it in the hover text? Or, just available to a script somewhere?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by David Berthiaume   (202 posts)  Bio
Date Reply #2 on Fri 14 Jul 2006 04:53 AM (UTC)
Message
Either or...

Both would be great.

But my inital idea was for hover text, like looking at the timestamp for that line.

Line 3594, Friday, July 14, 12:52:17AM, 500ms

Or something like that... The 500 ms would be the time difference between that line and the prior line.
Top

Posted by NeoFryBoy   USA  (42 posts)  Bio
Date Reply #3 on Fri 14 Jul 2006 05:13 AM (UTC)
Message
Perhap allow a bit of customization to the tooltip box.

I'd prefer to just have the military time and line #. The date gets clunky and I don't need miliseconds beyond satisfying my own curioisity with regexp match times.
Top

Posted by David Berthiaume   (202 posts)  Bio
Date Reply #4 on Fri 14 Jul 2006 09:08 PM (UTC)
Message
Well, all I can say is that one of the muds that I play require... very, very accurate timing. And knowing the time difference between the newline, and the prior line would really be helpful. It would help me, I don't think it'd be that complicated to add. I am sure it would help other people as well.
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #5 on Fri 14 Jul 2006 11:08 PM (UTC)
Message
Version 3.76 now has another field you can obtain with GetLineInfo, which is a high-resolution timer. This should give you the ability to compare one line with the previous and work out exactly the time difference.

Bear in mind however the latency of the TCP/IP packets, and that some lines may be batched together into the same packet.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by David Berthiaume   (202 posts)  Bio
Date Reply #6 on Fri 14 Jul 2006 11:19 PM (UTC)
Message
Yes, that thought had crossed my mind, which I don't particularly mind. I'm not worried about that, I imagine it'll just say 0ms.
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #7 on Fri 14 Jul 2006 11:30 PM (UTC)
Message
It will probably be slightly more than 0, as it takes time to process a line (triggers etc.) however it will be small.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #8 on Fri 14 Jul 2006 11:41 PM (UTC)
Message
I am getting results like this (these are time differences):


     0.00008890
     0.00008766
     0.00009302
     0.00008751
     0.00007840
     0.00020469
     0.00009711
     0.00013277
     0.00006412
     0.00004703
     1.70075432
     0.00009941
     0.17542972
     2.18646055
     0.00017771
     0.25949439
     0.00007043
     0.00006358
     0.00005930
     0.00006136
     0.00006010
     0.00006057
     0.00005647
     0.00006019


The big gaps are when I type in a new command, the small ones are lines in one packet I guess. You can see that many lines are only about 60 microseconds apart.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by David Berthiaume   (202 posts)  Bio
Date Reply #9 on Sat 15 Jul 2006 03:09 AM (UTC)
Message
Is that including blank lines?

Or just lines with information?

The datestamp is a mediocre, semi-accurate facimile of what I'd like to see. Infact, I ended up using it to get a rough idea of timings involved, then narrowed it down from there.

With being able to get a truly accurate time down to the millisecond, I could work things out better.

That's more or less what I was thinking of.

When a line comes in for an attack. I want to be able to see the time it takes, down to the millisecond to when it lands, this of course means letting it land intentionally.

The date stamp always gives whole seconds...

12:52:54 AM

12:52:56 AM

It rounds up or down... It doesn't give you fraction of a second. Knowing the exact time I send a command to the mud(which prepares defense) and when the Defense end(outputs a missed block) is difficult to know when it lasts less than 1 second it just shows it as a whole second.

Also... Does the getlineinf option cover every line on the output, not just lines coming in from the mud?

I.E. When you echo the input, will it show that information as well?
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #10 on Sat 15 Jul 2006 05:34 AM (UTC)
Message
Every line is timestamped, including ones generated at the client end. The timestamp happens at the time the newline is processed.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


26,456 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.