Changed elapsed calculation to getTime - startTime