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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Lester
Newbie


Joined: 20 Mar 2017
Posts: 1

PostPosted: Wed Mar 22, 2017 9:38 am   

Timer between events.
 
Hello!

Could you tell me if it's possible to make some kind of timer that will measure the time between two specified events and then store that information for future, so I could recall it later with, for example, #PRINT command?

For example:
"The day starts" -> timer start
"The night starts" -> timer stop

And I would have an alias that will print on the screen the amount of time between that two events.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: Wed Mar 22, 2017 6:48 pm   
 
I am sure it can be done, but you would need to code up your own function to do the time math.
I just turn on timestamps and figure it out manually myself.
(preferences, session tab on the left, scrollback tab up top)

Or you can use variables to store the time data.
#HELP %time
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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