* timemono_between - time between two monotonic times * @recent: the larger time. * @old: the smaller time. * * This returns a well formed struct timerel of @recent - @old. */
| 397 | * This returns a well formed struct timerel of @recent - @old. |
| 398 | */ |
| 399 | static inline struct timerel timemono_between(struct timemono recent, |
| 400 | struct timemono old) |
| 401 | { |
| 402 | struct timerel t; |
| 403 | |
| 404 | t.ts = time_sub_(recent.ts, old.ts); |
| 405 | return t; |
| 406 | } |
| 407 | |
| 408 | /** |
| 409 | * timemono_since - elapsed monotonic time since @old |