* time_before - is a before b? * @a: one absolute time. * @b: another absolute time. * * Example: * static bool still_valid(const struct timeabs *start) * { * #define TIMEOUT time_from_msec(1000) * return time_before(time_now(), timeabs_add(*start, TIMEOUT)); * } */
| 233 | * } |
| 234 | */ |
| 235 | static inline bool time_before(struct timeabs a, struct timeabs b) |
| 236 | { |
| 237 | return time_less_(a.ts, b.ts); |
| 238 | } |
| 239 | |
| 240 | /** |
| 241 | * timemono_before - is a before b? |