Type Number Event touch Revision 2017.3060 Keywords touch, time
Provides an easy way to get the time in milliseconds since the start of the application, from within a touch event listener function.
local object = display.newImage( "ball.png" ) function object:touch( event ) if event.phase == "began" then print(event.time/1000 .. " seconds since app started." ) end return true end object:addEventListener( "touch", object )