avoid jdk-11.0.6+10: it shows problem "S8217731: Font rendering and glyph spacing changed from jdk-8 to jdk-11" https://bugs.openjdk.java.net/browse/JDK-8217731 even though the changelog claims to have resolved this;
# -*- shell-script -*- :mode=shellscript:
#
# Author: Makarius
#
# timestart - setup bash environment for timing.
#
TIMES_RESULT=""
function get_times () {
local TMP="${TMPDIR:-/tmp}/get_times$$"
times > "$TMP" # No pipe here!
TIMES_RESULT="$SECONDS $(echo $(cat "$TMP") | perl -pe 's,\d+m\d+\.\d+s \d+m\d+\.\d+s (\d+)m(\d+)\.\d+s +(\d+)m(\d+)\.\d+s, $1 * 60 + $2 + $3 * 60 + $4,e')"
rm -f "$TMP"
}
get_times # sets TIMES_RESULT