swift wait 5 seconds

Swift
sleep(5). // Argument is number of seconds
Source

Also in Swift: