Last active
February 3, 2022 21:11
-
-
Save cbguder/5c249eab5df2c3e52b3f919c2a7b8703 to your computer and use it in GitHub Desktop.
Write command timings to CSV file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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