Add timer functions with precision in milliseconds.