#!/bin/bash START=$(date +%s) ./UJ_single_v_4.out 0.5 END=$(date +%s) DIFF=$(( $END - $START )) echo "$(($DIFF / 60)) min $(($DIFF % 60)) sec"