|
Drool.se Newbie
Joined: 26 May 2002 Posts: 7 Location: Sweden
|
Posted: 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* |
|
|
|
dacheeba Adept
Joined: 29 Oct 2001 Posts: 250
|
Posted: Sun May 26, 2002 3:39 am |
#TR {(%w) tells you: (*)} {#SUB {%time("hh:nn:ss") - %1 tells you: %2}}
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
GiriFox Wanderer
Joined: 25 Sep 2001 Posts: 59 Location: Australia
|
Posted: 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.
|
|
|
|
Drool.se Newbie
Joined: 26 May 2002 Posts: 7 Location: Sweden
|
Posted: 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. |
|
|
|
|
|