Script Timer

While not as accurate as Jon’s Commands “the ticks”, the following script allows you time how long something takes to process (rounded up to the nearest second).

OS version: Any

--initialize the timer
set start_time to my time_me("")
--do something here, I'm going to add a delay just so you can see the timer works
repeat with i from 1 to 3
	delay i
end repeat
--get the total time elapsed since the timer was initialized
set total_time to my time_me(start_time)

return total_time -- in seconds

on time_me(the_time)
	if the_time = "" then
		return (current date)
	else
		return (current date) - the_time
	end if
end time_me