Skip to the content.

time

import "time" as time

time.snooze(seconds)

Pauses the current thread for seconds, which may be fractional:

import "time" as time

term.log("Starting")
time.snooze(0.5)   # half a second
term.log("Finished")

For the current date and time, or for measuring how long something takes, see the date module.

Next