Hello quick question here..

Ive got a function that changes some things in the UI and id like it to go a little slower... How would I it wait x milliseconds?..

CODE HERE
WAIT A FEW SECONDS
MORE CODE HERE

Thanks.