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

This commit is contained in:
Mikhail Tergoev 2024-08-05 15:09:52 +03:00
commit 9825784f01

@ -481,7 +481,11 @@ debug_timer () {
elif [[ "$1" == "--end" ]] ; then
END=$(date +%s%N)
DIFF=$((($END - $START)/1000000))
if [[ -n "$2" ]] ; then
print_warning "It took $DIFF milliseconds for $2"
else
print_warning "It took $DIFF milliseconds"
fi
fi
}