* Tick the stopwatch to collect the current time. */
| 139 | * Tick the stopwatch to collect the current time. |
| 140 | */ |
| 141 | static inline void stopwatch_tick(struct stopwatch *sw) |
| 142 | { |
| 143 | if (CONFIG(HAVE_MONOTONIC_TIMER)) |
| 144 | timer_monotonic_get(&sw->current); |
| 145 | else |
| 146 | sw->current.microseconds = 0; |
| 147 | } |
| 148 | |
| 149 | /* |
| 150 | * Tick and check the stopwatch for expiration. Returns non-zero on expiration. |
no test coverage detected