Type Number Event relativeTouch Revision Release 2024.3703 Keywords touch, relativeTouch, time
Provides an easy way to get the time in milliseconds since the start of the application, from within a relative touch event listener function.
function printAppTimeOnTouch( event ) if ( event.phase ~= "moved" ) then print( "Input " .. event.phase .. " " .. event.time .. " seconds after app started." ) end return true end Runtime:addEventListener( "relativeTouch", printAppTimeOnTouch )