* time_between - time between two absolute times * @recent: the larger time. * @old: the smaller time. * * This returns a well formed struct timerel of @a - @b. */
| 348 | * This returns a well formed struct timerel of @a - @b. |
| 349 | */ |
| 350 | static inline struct timerel time_between(struct timeabs recent, struct timeabs old) |
| 351 | { |
| 352 | struct timerel t; |
| 353 | |
| 354 | t.ts = time_sub_(recent.ts, old.ts); |
| 355 | return t; |
| 356 | } |
| 357 | |
| 358 | /** |
| 359 | * timemono_between - time between two monotonic times |