Skip to content

Instantly share code, notes, and snippets.

@alexmx
Created February 8, 2018 13:10
Show Gist options
  • Save alexmx/5eb5c103babcaded725b9463769a85d5 to your computer and use it in GitHub Desktop.
Save alexmx/5eb5c103babcaded725b9463769a85d5 to your computer and use it in GitHub Desktop.
#!/bin/bash
START=$(date +%s)
# Command to benchmark
END=$(date +%s)
DIFF=$(echo "$END - $START" | bc)
echo "Time elapsed: $DIFF"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment