Record time in milliseconds