Atom

time.sleep()

Pauses the running thread.

Signature

time.sleep(seconds)

Parameters

Finite nonnegative numeric duration.

Returns

Null.

Behavior

Blocks the current VM's thread and checks for interruption while waiting.

Errors

Invalid duration or VM interruption.

Example

Atom
use time
time.sleep(0.001)