Time unit for `timer-ok` and `timer-warning`

I want to measure unit tests with milliseconds, because they are always faster than a second.