nsbin/mytime
Nico Schottelius ec0b81db1a add mytime script to display run time, not used time
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
2011-04-20 10:44:05 +02:00

9 lines
142 B
Bash
Executable file

#!/bin/sh
START="$(date +%s)"
"$@"
END="$(date +%s)"
LENGTH=$((END-START))
LENGTHM=$((LENGTH/60))
echo "Run: ${LENGTH}s ($LENGTHM minutes)"