timing: add ansi line clearing and cursor movement to TIMEFORMAT

Bash will add a newline to the end of the TIMEFORMAT when printing it.
The \e[K ANSI code will clear the line, and the \e[A code will move the
cursor up one line. travis-web doesn't suppot these codes completely,
but it should still blank out the line.