Skip to content
Snippets Groups Projects
Commit 96bc10e1 authored by tuncer's avatar tuncer
Browse files

travis-script.sh: use shell arith expansion

Instead of spawning expr we can use sh arithmetic expansion.
parent dd18cd9b
No related branches found
No related tags found
No related merge requests found
......@@ -54,10 +54,11 @@ esac
timed() {
echo "$1"
start_time=`date +%s`
start_time=$(date +%s)
$2
end_time=`date +%s`
echo "$1" took $(expr $end_time - $start_time) seconds.
end_time=$(date +%s)
duration=$((end_time - start_time))
echo "$1 took $duration seconds."
echo "----"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment