1
#!/bin/bash
2
START=$(date +%s)
3
$1
4
END=$(date +%s)
5
DIFF=$(( $END - $START))
6
echo "it took $DIFF seconds"
7