surfaces-unies/run-time.sh

10 lines
247 B
Bash
Raw Normal View History

#!/bin/bash
start=$(date +%s.%N)
nbloops=10
for i in `seq 1 $nbloops`; do
./bin/surfaces-unies -c -i ./img/asterix.ppm
done
end=$(date +%s.%N)
runtime=$(python -c "print((${end} - ${start}) / ${nbloops})")
echo "Average runtime was $runtime"