You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usage="Usage: $(basename $0) [-h|--help] COMMAND: returns a mean resource consumption for the specifiedshell command."
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo " ${usage}"
exit
fi
command="$*"
if [ -z "${command}" ]; then
echo " Error, no command specified.
${usage}" 1>&2
exit 5
fi
#/usr/bin/time --format "Wall-clock time, in [hours:]minutes:second: %E\nTotal number of CPU-seconds used by the system on behalf of the process (in kernel mode), in seconds.Average total (data+stack+text) memory use of the process, in Kilobytes: %K" ${command}