Renamed formatTimeInMilliSeconds to formatTime