nsbin/mytime
Nico Schottelius 78e21b5200 mass update commit
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-07-21 10:59:03 +02:00

12 lines
193 B
Bash
Executable file

#!/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