How would you return how long a script runs for?

When running a ksh script, how would you time how long it took the script ran for?
Is there a command that can capture this?

time <YOUR COMMAND>