import Foundation
var now = Date().timeIntervalSince1970
let oneSecondFromNow = now + 1
while now < oneSecondFromNow {
print("waiting...")
}
'Swift' 카테고리의 다른 글
cocoapods - 설치 + third party module 추가 (0) | 2021.12.05 |
---|---|
swift - Timer 예제 (0) | 2021.12.05 |
Swift - struct (0) | 2021.11.24 |
Swift - Thread wait (0) | 2021.11.23 |
swift - map / with index (0) | 2021.11.20 |