Lingo Dictionary > T-Z > time (timeout object property)

 

time (timeout object property)

Syntax

timeoutObject.time

Description

Timeout object property; the system time, in milliseconds, when the next timeout event will be sent by the given timeoutObject.

Note that this is not the time until the next event, but the absolute time of the next timeout event.

Example

This handler determines the time remaining until the next timeout event will be sent by the timout object Update by calculating the difference between its time property and the current value of the milliseconds and displaying the result in the field Time Until:

on prepareFrame
	msBeforeUpdate = timeout("Update").time - the milliseconds
	secondsBeforeUpdate = msBeforeUpdate / 1000
	minutesBeforeUpdate = secondsBeforeUpdate / 60
	member("Time Until").text = string(minutesBeforeUpdate) && "minutes before next \
	timeout"
end 

See also

milliseconds, period, persistent, target, timeout(), timeoutHandler