mediatribe.net -- Drupal et développement web

Notice: this post was last updated Il y a 3 years 15 weeks so it might be outdated. Please be cautious before implementing any of suggestions herein.

Calculating elapsed time on the command line

If you want to calculate how much time something takes on the command line:

START=$(date +%s)
# do your thing
echo "$(echo "$(date +%s) - $START"|bc) seconds since start"