mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2008
Posts: 22
D
dassa Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Jan 2008
Posts: 22
Hi
I want to do something to show how many seconds it took for a script/alias to execute from when it is called. It should show something like * script took %time to execute. how would i go about doing that? i have seen it done with $ticks in the past but unsure how to implement it.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Code:
alias or event {
  var %start = $ticks

  [whatever the script is]

  echo -a Completed in $calc(($ticks - %start) / 1000) seconds.
}


Invision Support
#Invision on irc.irchighway.net
Joined: Jan 2008
Posts: 22
D
dassa Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Jan 2008
Posts: 22
thanks


Link Copied to Clipboard