mytime 142 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
#!/bin/sh

START="$(date +%s)"
"$@"
END="$(date +%s)"
LENGTH=$((END-START))
LENGTHM=$((LENGTH/60))

echo "Run: ${LENGTH}s ($LENGTHM minutes)"