* timemono_before - is a before b? * @a: one monotonic time. * @b: another monotonic time. * * Example: * static bool still_valid(const struct timemono *start) * { * #define TIMEOUT time_from_msec(1000) * return timemono_before(time_mono(), timemono_add(*start, TIMEOUT)); * } */
| 250 | * } |
| 251 | */ |
| 252 | static inline bool timemono_before(struct timemono a, struct timemono b) |
| 253 | { |
| 254 | return time_less_(a.ts, b.ts); |
| 255 | } |
| 256 | |
| 257 | /** |
| 258 | * time_less - is a before b? |