How would I measure the time it takes for a script to run from start to finish?

 start-timing
   //CODE
 end-timing
Edit
Report