Record elapsed time for individual test cases.

Also limit elapsed time formatting to three digits.