add mytime script to display run time, not used time
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
b563a53a5c
commit
ec0b81db1a
1 changed files with 9 additions and 0 deletions
9
mytime
Executable file
9
mytime
Executable 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)"
|
Loading…
Reference in a new issue