X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftimer%2F_info;h=4c58d9e5f5bee7da8dce493b53946f84931b8975;hb=291237b4fed863be74051274ac5ad9920cb33cc3;hp=cb6808b436c2231671341c4f77acdb0e818a44e1;hpb=606cca7b0ed5236d1df1c4436ca79db6e3fd5321;p=ccan diff --git a/ccan/timer/_info b/ccan/timer/_info index cb6808b4..4c58d9e5 100644 --- a/ccan/timer/_info +++ b/ccan/timer/_info @@ -1,5 +1,6 @@ -#include #include "config.h" +#include +#include /** * timer - efficient implementation of rarely-expiring timers. @@ -37,14 +38,14 @@ * 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);