Script Debugger automatically times your script as it runs. This feature is especially useful during development when you’re trying to make your script as fast and efficient as possible.
To learn how long your script took to run, just run the script. The timer in the script window toolbar displays the timings.
The timer displays the following values:
The total time. This value is broken down into two components:
The AppleScript time. This is the time spent internally, exclusive of time spent waiting for Apple events to return from scriptable applications and scripting additions.
The AppleScript time is accompanied by a percentage figure, showing what proportion of the total time it represents.
The events time. This is the time spent waiting for Apple events to return from scriptable applications and scripting additions.
The events time is accompanied by a count of the Apple events sent.
The AppleScript time and the events time will sum to the total time.
You can also get a handle on what Apple events are being sent by using the event log.