Commit 9825784f authored by Mikhail Tergoev's avatar Mikhail Tergoev

Merge branch 'update-debug-timer' of github.com:Htylol/PortWINE into Htylol-update-debug-timer

parents 358f674c e71a798f
......@@ -481,7 +481,11 @@ debug_timer () {
elif [[ "$1" == "--end" ]] ; then
END=$(date +%s%N)
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
}
......
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