Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Latent
Apprentice


Joined: 19 Aug 2002
Posts: 120
Location: USA

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
Reply with quote
Latent
Apprentice


Joined: 19 Aug 2002
Posts: 120
Location: USA

PostPosted: 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...
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: 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
Reply with quote
Latent
Apprentice


Joined: 19 Aug 2002
Posts: 120
Location: USA

PostPosted: Sun Jan 26, 2003 8:39 pm   
 
well well, thanks for the help, works great
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net