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
Drool.se
Newbie


Joined: 26 May 2002
Posts: 7
Location: Sweden

PostPosted: Sun May 26, 2002 2:40 am   

Timestamping MU*-output...
 
Is there an easy way to 'timestamp' output from a MU*?
I wuld think of using that to see when a sertain row was sent from it.

Example:
16:03:31 > some output from the MU*
Reply with quote
dacheeba
Adept


Joined: 29 Oct 2001
Posts: 250

PostPosted: Sun May 26, 2002 3:39 am   
 
#TR {(%w) tells you: (*)} {#SUB {%time("hh:nn:ss") - %1 tells you: %2}}
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun May 26, 2002 5:22 am   
 
quote:

Is there an easy way to 'timestamp' output from a MU*?
I wuld think of using that to see when a sertain row was sent from it.

Example:
16:03:31 > some output from the MU*



To do as you wish in the example, take a look at this:

#TRIGGER {(%*)} {#SUBSTITUTE {%time("hh:nn:ss) ~> %1}}

Probably not a good idea to do this as you might see problems with "problem lines" which do not format correctly when the prompt appears, so I suggest sticking to specific implementations of this as per what Dacheeba wrote.

li'l shmoe of Dragon's Gate MUD
Reply with quote
GiriFox
Wanderer


Joined: 25 Sep 2001
Posts: 59
Location: Australia

PostPosted: Sun May 26, 2002 7:03 am   
 
On similar topic, I often use #SAY %secs() to output a high-precision time stamp when I'm trying to calculate speed of certain operations.
Reply with quote
Drool.se
Newbie


Joined: 26 May 2002
Posts: 7
Location: Sweden

PostPosted: Sun May 26, 2002 11:19 am   
 
Thanks you very much.
It worked nice... A little tweaking to work on the MU* i use, but still.
Thanks again.
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