Skip to content

Instantly share code, notes, and snippets.

@huberflores
Created April 15, 2013 14:44
Show Gist options
  • Save huberflores/5388619 to your computer and use it in GitHub Desktop.
Save huberflores/5388619 to your computer and use it in GitHub Desktop.
function get_Dalvik_Average_Time()
{
local result=0.0
local acumulador=0.0
for i in {1..10}
do
result=$(echo "scale=10; $(./rund.sh -cp markov.jar Markov)" | bc -q 2>/dev/null)
acumulador=$(echo "$acumulador + $result" | bc)
done
acumulador=$(echo "$acumulador/10.0" | bc)
echo $acumulador "msec"
}
$(get_Dalvik_Average_Time)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment