add mytime script to display run time, not used time

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-04-20 10:44:05 +02:00
parent b563a53a5c
commit ec0b81db1a

9
mytime Executable file
View file

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