import correct sleep function from time