Added millisecond counting functionality.