Commit 8f484a76 authored by Mikhail Tergoev's avatar Mikhail Tergoev

Merge branch 'Htylol-update-debug-timer' into devel

parents 358f674c 9825784f
...@@ -481,7 +481,11 @@ debug_timer () { ...@@ -481,7 +481,11 @@ debug_timer () {
elif [[ "$1" == "--end" ]] ; then elif [[ "$1" == "--end" ]] ; then
END=$(date +%s%N) END=$(date +%s%N)
DIFF=$((($END - $START)/1000000)) DIFF=$((($END - $START)/1000000))
print_warning "It took $DIFF milliseconds for $2" if [[ -n "$2" ]] ; then
print_warning "It took $DIFF milliseconds for $2"
else
print_warning "It took $DIFF milliseconds"
fi
fi fi
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment