correct timeDiff to miliseconds