How to get the elapsed time after app launch in Corona ?

By | February 18, 2012

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.

🙂

Leave a Reply

Your email address will not be published. Required fields are marked *