Skip to content

Instantly share code, notes, and snippets.

@cbguder
Last active February 3, 2022 21:11
Show Gist options
  • Save cbguder/5c249eab5df2c3e52b3f919c2a7b8703 to your computer and use it in GitHub Desktop.
Save cbguder/5c249eab5df2c3e52b3f919c2a7b8703 to your computer and use it in GitHub Desktop.
Write command timings to CSV file
# Requires GNU time
timed() {
local ts=$(date "+%FT%T%z" | tr -d "\n")
gtime --quiet -o "${HOME}/.timed" -a -f "${ts},%e,%C" -- $@
}
alias git="timed git"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment