mIRC Home    About    Download    Register    News    Help

Print Thread
#16930 25/03/03 09:12 PM
Joined: Dec 2002
Posts: 417
O
Othello Offline OP
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
here is the script I am using. But it returns the time like this
[ 0:00838 ]
I am trying to calculate the amout of time it took
to find the information

Code:
  [color:red] 
%time = $calc($timezone + (($ticks - %time) / 1000 ))
msg $nick 12Found 2[4 %fcnts 2] 12matches for4 %file 12in 2[04 [color:blue] $+($asctime($int(%time),n:),$gettok(%time,2,46)) 2]

 [/color]  




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
#16931 25/03/03 09:47 PM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
what format are u wanting it to return?


D3m0nnet.com
#16932 25/03/03 09:52 PM
Joined: Dec 2002
Posts: 417
O
Othello Offline OP
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
Minutes and Seconds
This script use to return the actual time it took to find the info.
Now I am not sure what it returns




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
#16933 26/03/03 04:46 AM
Joined: Dec 2002
Posts: 417
O
Othello Offline OP
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
This is the correct code to display the amout of time it took to complete the operation.

Code:
 [color:red] 
%time = $calc($timezone + (($ticks - %time) / 1000 ))msg $nick 12Found 2[4 %fcnts 2] 12matches for4 %file 12in 2[04  $asctime($int(%time),n:ss) 2]

 [/color]   




Intelligence: It's better to ask a stupid question, then to prove it by not asking....

Link Copied to Clipboard