XDispatch 0.7.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Defines | Typedefs | Functions
time.h File Reference
#include <stdint.h>
#include "base.h"

Go to the source code of this file.

Defines

#define NSEC_PER_SEC   (uint64_t)1000000000
#define NSEC_PER_MSEC   (uint64_t)1000000
#define USEC_PER_SEC   (uint64_t)1000000
#define NSEC_PER_USEC   (uint64_t)1000
#define DISPATCH_TIME_NOW   0ull
#define DISPATCH_TIME_FOREVER   (~0ull)

Typedefs

typedef uint64_t dispatch_time_t
 An somewhat abstract representation of time; where zero means "now" and DISPATCH_TIME_FOREVER means "infinity" and every value in between is an opaque encoding.

Functions

dispatch_time_t dispatch_time (dispatch_time_t when, int64_t delta)
 Create dispatch_time_t relative to the default clock or modify an existing dispatch_time_t.
dispatch_time_t dispatch_walltime (const struct timespec *when, int64_t delta)
 Create a dispatch_time_t using the wall clock.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Sun Jan 27 2013 21:21:52 for XDispatch by Doxygen 1.7.6.1
© 2010-2013 MLBA (about | privacy) All Rights reserved.