import time only sleep python code example Example: from time import sleep, time from time import sleep sleep(0.5)