Time Delta

Returns the number of seconds since the unit was last changed state or value.

Usage:

time delta of (name of Unit)

Examples:

write log "it has been " & (time delta of "Kitchen Motion") & " seconds since motion in the kitchen"