Improve timer accuracy and duration formatting.