Skip to content

Instantly share code, notes, and snippets.

@gusugusu1018
Created December 5, 2019 07:24
Show Gist options
  • Save gusugusu1018/7358cc4a89a2e400afe3f9ed5f10c6dc to your computer and use it in GitHub Desktop.
Save gusugusu1018/7358cc4a89a2e400afe3f9ed5f10c6dc to your computer and use it in GitHub Desktop.
#!/bin/bash
IMAGE=$1
start_time=`date +%s%N`
OUTPUT=`./runner.out ${IMAGE}`
end_time=`date +%s%N`
run_time=`echo "scale=3; (${end_time} - ${start_time})/1000000000" | bc`
echo "${OUTPUT},${run_time}sec"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment