Removed invalid timeElapsed2 function