Compare two absolute times: Return -1, 0, or 1 if t1 is <, =, or > t2, * respectively. */
| 76 | /* Compare two absolute times: Return -1, 0, or 1 if t1 is <, =, or > t2, |
| 77 | * respectively. */ |
| 78 | static inline int mono_time_cmp(const struct mono_time *t1, |
| 79 | const struct mono_time *t2) |
| 80 | { |
| 81 | if (t1->microseconds == t2->microseconds) |
| 82 | return 0; |
| 83 | |
| 84 | if (t1->microseconds < t2->microseconds) |
| 85 | return -1; |
| 86 | |
| 87 | return 1; |
| 88 | } |
| 89 | |
| 90 | /* Return true if t1 after t2 */ |
| 91 | static inline int mono_time_after(const struct mono_time *t1, |
no outgoing calls
no test coverage detected