projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31bf658
)
time: fix example.
author
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 12 Jun 2014 04:07:11 +0000
(13:37 +0930)
committer
Rusty 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
patch
|
blob
|
history
diff --git
a/ccan/time/time.h
b/ccan/time/time.h
index 46568425c7cd44594e3964d3f8435f316d11eed4..287558d0c735d7150f4d24a9404c711b830b7f62 100644
(file)
--- a/
ccan/time/time.h
+++ b/
ccan/time/time.h
@@
-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);
* }
*/