Reference for get_millis_shown
Get milliseconds since the sketch was shown. This is part of the reference section.
Arc
Buffer
Data
Dialog
Ellipse
Geo Utils
Image
Joystick (future)
Keyboard
Line
Mouse / Touchscreen
Pixel
Rectangle
Renderers
Shape
Sound (future)
Style
System
get_millis_shown
Text
Transform
Purpose
Get the milliseconds since the sketch was shown to the user.
Snippet
Show a sketch, wait 3 seconds, and print the milliseconds.
import time sketch.show() time.sleep(3) print(sketch.get_millis_shown())
Examples
Availability
Available for all platforms. For static, this will always return 0.