Return to Snippet

Revision: 42632
at March 8, 2011 07:04 by krustyflakes


Initial Code
struct tm tm = {};
strptime("2009-06-11 10:15", "%Y-%m-%d %H:%M", &tm);

struct timespec ts = {};
ts.tv_sec = mktime(&tm);

dispatch_time_t timeout = dispatch_walltime(&ts, 0);

Initial URL

                                

Initial Description

                                

Initial Title
How to create an absolute timeout in GCD

Initial Tags

                                

Initial Language
C