MCPcopy Create free account
hub / github.com/coreboot/coreboot / stopwatch_tick

Function stopwatch_tick

src/include/timer.h:141–147  ·  view source on GitHub ↗

* Tick the stopwatch to collect the current time. */

Source from the content-addressed store, hash-verified

139 * Tick the stopwatch to collect the current time.
140 */
141static 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.

Callers 4

uart_bitbang_tx_byteFunction · 0.85
stopwatch_expiredFunction · 0.85
stopwatch_duration_usecsFunction · 0.85
google_chromeec_commandFunction · 0.85

Calls 1

timer_monotonic_getFunction · 0.50

Tested by

no test coverage detected