Commit e71a798f authored by Vladislav's avatar Vladislav

Update debug_timer

parent 43162d03
......@@ -483,7 +483,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
}
......
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