View on GitHub

DSFML

dsfml.system.sleep

A module containing the sleep function.

void sleep(Time duration);
Make the current thread sleep for a given duration.

sleep is the best way to block a program or one of its threads, as it doesn't consume any CPU power.