added user input for time in seconds, milliseconds now display up to three places to avoid shifting whenever reaches double digits.