thanks turnstep... the snippet i found was also like this... but this only allows me to to benchmark if code if i pass it the code i want to run... what i want to do is to time the time it takes for the script to run from start to completion... or can this still be done using the Benchmark module?