Originally Posted By: Robdutoit

....
I need to find a script that will allow me to calculate how long each line of code is taking to run.
....


Something to get you going. It requires the TimeDiff() UDF.

 Code:
Break on

$start = @DATE + " " + @TIME
;Your code goes here
Sleep 6
$end = @DATE + " " + @TIME
?"Runtime = " + TimeDiff($start, $end, 'm', "1") + " minutes."

Sleep 5
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.