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

Function stopwatch_duration_usecs

src/include/timer.h:170–180  ·  view source on GitHub ↗

* Return number of microseconds since starting the stopwatch. */

Source from the content-addressed store, hash-verified

168 * Return number of microseconds since starting the stopwatch.
169 */
170static inline int64_t stopwatch_duration_usecs(struct stopwatch *sw)
171{
172 /*
173 * If the stopwatch hasn't been ticked (current == start) tick
174 * the stopwatch to gather the accumulated time.
175 */
176 if (!mono_time_cmp(&sw->start, &sw->current))
177 stopwatch_tick(sw);
178
179 return mono_time_diff_microseconds(&sw->start, &sw->current);
180}
181
182static inline int64_t stopwatch_duration_msecs(struct stopwatch *sw)
183{

Callers 15

ec_hash_imageFunction · 0.85
vb2ex_ec_vboot_doneFunction · 0.85
vb2ex_ec_jump_to_rwFunction · 0.85
thread_joinFunction · 0.85
thread_mutex_lockFunction · 0.85
spi_readatFunction · 0.85
uart_bitbang_tx_byteFunction · 0.85
reset_usb2_portsFunction · 0.85
warm_reset_usb3_portsFunction · 0.85
__waitFunction · 0.85
s5p_dp_config_videoFunction · 0.85
smu_poll_responseFunction · 0.85

Calls 3

mono_time_cmpFunction · 0.85
stopwatch_tickFunction · 0.85

Tested by

no test coverage detected