mIRC Home    About    Download    Register    News    Help

Print Thread
#43212 20/08/03 01:47 PM
Joined: Jun 2003
Posts: 130
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Jun 2003
Posts: 130
I think it would be useful for an identifier to return either the amount of milliseconds a timer has been running or the amount of times a timer has triggered.


If only women came with popup menus and online help.
#43213 20/08/03 06:41 PM
Joined: Dec 2002
Posts: 343
D
Pan-dimensional mouse
Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 343
Maybe something like $sock. $timer(somethingname,0) or $timer(*,0) to tell you how many timers match that. I don't think that's possible yet.

#43214 20/08/03 07:49 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
I don't believe thats what he is asking for at all.

#43215 20/08/03 08:18 PM
Joined: Dec 2002
Posts: 343
D
Pan-dimensional mouse
Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 343
I should have said in addition to what he was saying.

#43216 21/08/03 12:15 PM
Joined: Apr 2003
Posts: 210
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Apr 2003
Posts: 210
Well there is a $timer identifier with a .secs property, If it was a millisecond timer, maybe it returns millisecs ? It's not hard to calculate them from secs anyway.

#43217 21/08/03 12:45 PM
Joined: Jun 2003
Posts: 130
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Jun 2003
Posts: 130
Here is an example of what I mean.
Code:
alias -l lagchk {
  .notice $me lagchk $ticks
  set %t $ticks
  .timerlagcount -m 0 1 lagdisp $!round($calc(($ticks - %t ) / 1000),2)
}

Now wouldn't it be much easier to use
Code:
alias -l lagchk {
  .notice $me lagchk $ticks
  .timerlagcount -m 0 1 lagdisp $!round($calc(($ticks - $timer(lagcount).freq) / 1000),2)
}

or somthing.
Ok that code would be faulty. As was pointed out $timer only supports numbers.


If only women came with popup menus and online help.

Link Copied to Clipboard