ddn-ime-evaluation/benchmark/tool_estimate_time_remains.sh

12 lines
253 B
Bash
Raw Permalink Normal View History

2018-10-24 06:05:59 +00:00
#!/bin/bash
2018-11-13 15:07:38 +00:00
. ./config.sh
2018-10-24 06:05:59 +00:00
2018-11-13 15:07:38 +00:00
set -x
done="$(find output_v2 -type f | wc -l)"
todo=$((${#COUNT_ARR[@]} * ${#TYPE_ARR[@]} * ${#API_ARR[@]} * ${#NN_ARR[@]} * ${#PPN_ARR[@]} * ${#T_ARR[@]}))
2018-10-24 06:05:59 +00:00
remains=$(($todo - $done))
2018-11-13 15:07:38 +00:00
set +x
2018-10-24 06:05:59 +00:00
2018-11-13 15:07:38 +00:00
echo "$(($remains * 1 / 60)) h"