Mistakenly made elapsedTime an integer

Corrected!