Created
December 24, 2016 03:22
-
-
Save adamryman/e53d547698d6a38c1937c6e099d019df to your computer and use it in GitHub Desktop.
Build a go project and count how many seconds have passed then print `time` that it took.
This file contains hidden or 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
a=1; done=0; while [[ ! -e "./__done__" ]]; do sleep 1; echo $a; a=$(($a+1)); done & time go build ./... && touch __done__ && sleep .99 && rm __done__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment