.time R/O Property

Function:

Returns the time (in 0.5 second intervals) elapsed since the button was last pressed or released (whichever happened more recently).

Type:

Byte

Value Range:

0-255

See Also:

---


Details

This property will only show a meaningful value when read inside the on_button_pressed or on_button_released event handler.

The value of this property maxes out at 255 (127.5 seconds).

The elapsed time is not counted while the execution of your application is paused (when debugging).


.time R/O Property

Details