|
tonykunz Newbie
Joined: 03 May 2008 Posts: 5
|
Posted: Mon Jun 15, 2009 2:57 am
Time elapsed between two triggers. |
There was a script posted long ago and I cannot find it. Does anyone have or know where a timer for the time elapsed between two triggers can be found? Or how hard is it to code?
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Jun 15, 2009 3:23 am |
PrevTriggerTime = @CurTriggerTime
CurTriggerTime = %time()
#say This trigger fired %eval(@CurTriggerTime - @PrevTriggerTime)
You will probably have to tweak things a little, since I'm not sure ZMud does time math like this. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
bbs108 Beginner
Joined: 22 Jun 2009 Posts: 12
|
Posted: Mon Jun 22, 2009 5:57 pm |
#trigger {whatever} {#var starttime %ctime}
#trigger {*:*:*} {#var endtime %ctime}
#trigger {whatever for ur show time trigger} {#show %eval(@endtime-@starttime)seconds have passed} |
|
|
|
|
|