Add a space before the units, i.e. "%d ms" or "%d s"