time: fix example.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Jun 2014 04:07:11 +0000 (13:37 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 12 Jun 2014 04:07:11 +0000 (13:37 +0930)
time_between()'s ordering matches time_sub, for better or worse.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/time/time.h

index 46568425c7cd44594e3964d3f8435f316d11eed4..287558d0c735d7150f4d24a9404c711b830b7f62 100644 (file)
@@ -249,7 +249,7 @@ static inline bool timeabs_eq(struct timeabs a, struct timeabs b)
  *                     exit(0);
  *             }
  *             wait(NULL);
- *             diff = time_between(start, time_now());
+ *             diff = time_between(time_now(), start);
  *             return timerel_eq(diff, zero);
  *     }
  */