alias/command speed checker

By CakerX on Jan 30, 2007

Just copy this into your aliases file, and then type /ticks -yourcommand to test-

and it will perform the command, and tell you how long it took to run, in ticks. plain, simple, to the point.

Similar code is used by all the best coders to test their scripts. A must have for any scripter

/ticks {
  %ticks = $ticks
  $1-
  %ticks = $ticks - %ticks
  echo -ae Ticks to complete: %ticks
}

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.