延時方法
- (void)gcdDelyMethod
{
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
NSLog(@"延遲2秒執行--%@",[NSThread currentThread]);
});
}//方法延時
延時方法
- (void)gcdDelyMethod
{
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
NSLog(@"延遲2秒執行--%@",[NSThread currentThread]);
});
}//方法延時
II U C ONLINE C ON TEST 2 008 Problem D: GCD LCM Input: standard input Output: standard output The