Skip to content

Commit

Permalink
Update script run-time to output minutes too
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectricRCAircraftGuy committed Dec 30, 2019
1 parent 94b1b6d commit 9a152c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pdf2searchablepdf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ fi

end=$SECONDS
duration_sec=$(( end - start ))
echo -e "\nTotal script run-time: $duration_sec sec"
# Get duration in min too; see my ans here:
# https://stackoverflow.com/questions/12722095/how-do-i-use-floating-point-division-in-bash/58479867#58479867
duration_min=$(printf %.3f $(echo "$duration_sec/60" | bc -l))
echo -e "\nTotal script run-time: $duration_sec sec ($duration_min min)"

echo "END OF pdf2searchablepdf."
Binary file modified test_imgs_searchable.pdf
Binary file not shown.

0 comments on commit 9a152c1

Please sign in to comment.