surfaces-unies/run-time.sh
2018-11-27 14:56:58 +01:00

10 lines
247 B
Bash
Executable File

#!/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"