ddn-ime-evaluation/benchmark/tool_estimate_time_remains.sh

12 lines
253 B
Bash
Executable File

#!/bin/bash
. ./config.sh
set -x
done="$(find output_v2 -type f | wc -l)"
todo=$((${#COUNT_ARR[@]} * ${#TYPE_ARR[@]} * ${#API_ARR[@]} * ${#NN_ARR[@]} * ${#PPN_ARR[@]} * ${#T_ARR[@]}))
remains=$(($todo - $done))
set +x
echo "$(($remains * 1 / 60)) h"