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 ➜ General ➜ a question about timer

a question about timer

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


Posted by Zhou_shu   (3 posts)  Bio
Date Tue 22 Oct 2002 01:28 PM (UTC)
Message
The shortest unit of time in mushclient timer is second.
If i want to get a time delay of one millisecond, what shout i do? Sometimes one second is too long for me.

Thanks!
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 22 Oct 2002 09:49 PM (UTC)

Amended on Tue 20 Nov 2007 04:16 AM (UTC) by Nick Gammon

Message
When timers were designed it seemed unnecessary to allow for sub-second intervals. For on thing, Internet "lag" is often almost a second. For instance, I recently "pinged" www.smaug.org (Realms of Despair MUD), which took an average of 300 ms (almost 1/3 of a second). Then there is the time the server will take to process a command, say another half-second if you are lucky. So if Internet time and processing time, per command, are going to be in the order of a second, it seems pointless to allow you to fine-tune your timers to 1/1000 of a second. You may have increased precision, but not increased accuracy.

However, having said that, in MUSHclient you can set up a "speedwalk" delay in increments of milliseconds. So, if you need to speedwalk from A to B (or B to A), you can have each command issued every 100 ms if you want to.

In scripting (or in triggers) you can put commands into the speedwalk queue, so it is possible to issue commands therefore in sub-second intervals.

- 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.


11,439 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.