🧪 Version 0.3.1 is our alpha release candidate. Please send us bug reports and suggestions!

Sketchingpy

Creative coding and interactive science everywhere for everyone: web, desktop, mobile, Jupyter, and more. Open source!

Reference for get_millis_shown

Get milliseconds since the sketch was shown. This is part of the reference section.

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.

See also