Skip to content

Instantly share code, notes, and snippets.

@rjhornsby
Created September 17, 2015 01:05
Show Gist options
  • Save rjhornsby/5d11686fedc8cf33816e to your computer and use it in GitHub Desktop.
Save rjhornsby/5d11686fedc8cf33816e to your computer and use it in GitHub Desktop.
#!/bin/bash
echo -n "[$(date)] "
result=$(/usr/bin/time -p curl -s http://google.com 1> /dev/null 2> /tmp/timer)
echo "exit:$? elapsed:$(awk '/^real/ {print $2}' /tmp/timer)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment