|
Latent Apprentice
Joined: 19 Aug 2002 Posts: 120 Location: USA
|
Posted: Sun Jan 26, 2003 5:40 am
average tick calculator |
I am trying to create a trigger (or set of) to measure the amount of time in between ticks, and then divide that time by the amount of ticks that have gone by, as well as keeping a list tick times...... Every tick on my mud, the message >>>TICK<<< is displayed
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Jan 26, 2003 5:57 am |
#AL atconnect {#VAR Ticks 0;#VAR TickList %null}
#TR {~>~>~>TICK~<~<~<} {#ADDITEM TickList {%time()};#ADD Ticks 1;#MATH TickAvg (%ctime/@Ticks)}
Or, you could just use the tick-timer.
LightBulb
Senior Member |
|
|
|
Latent Apprentice
Joined: 19 Aug 2002 Posts: 120 Location: USA
|
Posted: Sun Jan 26, 2003 7:30 am |
Of course I could use the tick timer, but the time of an actual tick varies from tick to tick, so I want to establish a running average... The %ctime function... it displays a number like 22300... what would be more useful to me is if it counted up in seconds... meaning 0, 1, 2, 3, etc... not 22301, 22302, 22303, etc...
|
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Sun Jan 26, 2003 1:02 pm |
It does count in seconds. It is the number of seconds you have been connected. That is, a value fo 22300 means you have been connected for 22300 seconds or for 6 hours, 11 minutes and 40 seconds.
Kjata |
|
|
|
Latent Apprentice
Joined: 19 Aug 2002 Posts: 120 Location: USA
|
Posted: Sun Jan 26, 2003 8:39 pm |
well well, thanks for the help, works great
|
|
|
|
|
|