diff --git a/mytime b/mytime new file mode 100755 index 0000000..64b5d4a --- /dev/null +++ b/mytime @@ -0,0 +1,9 @@ +#!/bin/sh + +START="$(date +%s)" +"$@" +END="$(date +%s)" +LENGTH=$((END-START)) +LENGTHM=$((LENGTH/60)) + +echo "Run: ${LENGTH}s ($LENGTHM minutes)"