nsbin/mytime

13 lines
193 B
Text
Raw Normal View History

#!/bin/sh
START="$(date +%s)"
"$@"
END="$(date +%s)"
LENGTH=$((END-START))
LENGTHM=$((LENGTH/60))
echo "Run: ${LENGTH}s ($LENGTHM minutes)"
# Record values
echo "$@; ${LENGTH}" >> ~/.mytime