More tolerant unit test for the Timer class.

Quick fix for Travis CI.