How to get execution time of a script effectively?
743
votes
22
answers
1069204
views
I would like to display the completion time of a script.
What I currently do is -
#!/bin/bash
date ## echo the date at start
# the script contents
date ## echo the date at end
This just show's the time of start and end of the script. Would it be possible to display a fine grained output like processor time/ io time , etc?
Asked by mtk
(28478 rep)
Oct 19, 2012, 01:26 PM
Last activity: Dec 19, 2024, 03:14 PM
Last activity: Dec 19, 2024, 03:14 PM