struct timeq_entry {
char *name;
- time_t execute;
+ struct timeval execute;
timeq_callback_t *callback;
void *data;
void init_timeq();
void timeq_tick();
struct timeq_entry* timeq_add(int seconds, timeq_callback_t *callback, void *data);
+struct timeq_entry* timeq_uadd(int useconds, timeq_callback_t *callback, void *data);
struct timeq_entry* timeq_add_name(char *name, int seconds, timeq_callback_t *callback, void *data);
+struct timeq_entry* timeq_uadd_name(char *name, int useconds, timeq_callback_t *callback, void *data);
int timeq_del(struct timeq_entry* entry);
int timeq_del_name(char *name);
int timeq_name_exists(char *name);