Advertisement
intersys

Untitled

Apr 25th, 2014
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.62 KB | None | 0 0
  1. /*
  2. * Triggered with /testspeed
  3. * $key1: 62 ms - $key2: 31 ms
  4. */
  5.  
  6. alias testspeed {
  7.   var %count = 1, %ticks = $ticks, %iterations = 1000, %length = 100
  8.   while (%count <= %iterations) {
  9.     noop $key1(%length)
  10.     inc %count
  11.   }
  12.   var %key1_result $calc($ticks - %ticks)
  13.  
  14.   var %count = 1, %ticks = $ticks
  15.   while (%count <= %iterations) {
  16.     noop $key2(%length)
  17.     inc %count
  18.   }
  19.   var %key2_result $calc($ticks - %ticks)
  20.  
  21.   echo -a $!key1: %key1_result ms - $!key2: %key2_result ms
  22. }
  23. alias key1 { return $remove($gettok($address(intersys,2),1,46),*!*@) }
  24. alias key2 { return $gettok($ial(intersys).host,1,46) }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement