]> git.ozlabs.org Git - ccan/blobdiff - ccan/timer/_info
io failtest timer tools: fallout from time changes.
[ccan] / ccan / timer / _info
index cb6808b436c2231671341c4f77acdb0e818a44e1..580b115c563d289d6a1195af61cd5e53ca471124 100644 (file)
  *                     s = malloc(sizeof(*s));
  *                     s->string = argv[1];
  *                     timer_add(&timers, &s->timer,
- *                               time_add(time_now(),
- *                                        time_from_msec(atol(argv[2]))));
+ *                               timeabs_add(time_now(),
+ *                                           time_from_msec(atol(argv[2]))));
  *                     list_add_tail(&strings, &s->node);
  *                     argv += 2;
  *             }
  *
  *             while (!list_empty(&strings)) {
- *                     struct timespec now = time_now();
+ *                     struct timeabs now = time_now();
  *                     list_for_each(&strings, s, node)
  *                             printf("%s", s->string);
  *                     timers_expire(&timers, now, &expired);