In order to get the elapsed time after the application launch in Corona, use the following lines of code,
function elapsedTimeCalc( event ) print ( "Time elapsed since app launch---" ..event.time/ 1000 ) end Runtime:addEventListener( "enterFrame" , elapsedTimeCalc) |
Thus we will get the elapsed time after the app launch in milliseconds.