| 115 | }; |
| 116 | |
| 117 | static inline void stopwatch_init(struct stopwatch *sw) |
| 118 | { |
| 119 | if (CONFIG(HAVE_MONOTONIC_TIMER)) |
| 120 | timer_monotonic_get(&sw->start); |
| 121 | else |
| 122 | sw->start.microseconds = 0; |
| 123 | |
| 124 | sw->current = sw->expires = sw->start; |
| 125 | } |
| 126 | |
| 127 | static inline void stopwatch_init_usecs_expire(struct stopwatch *sw, uint64_t us) |
| 128 | { |
no test coverage detected