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