[riot-notifications] [RIOT-OS/RIOT] tests/periph_spi: Add thread runtime stats (#14087)

Koen Zandberg notifications at github.com
Fri May 15 11:32:34 CEST 2020

### Contribution description

This PR extends the periph_spi benchmark command with timing statistics for
the thread runtime, counting only the time the thread initiating the SPI
request is busy with the SPI transfer. This is useful to measure timings
on SPI transfers when DMA and other async mechanisms are used to
transfer the bytes

### Testing procedure

Use the `bench` shell command in `tests/periph_spi`

On master the two timing columns should be similar with a few microseconds difference due to measurement overhead. When rebasing on #14057, the columns should differ with the second column showing lower numbers, depending a bit on the used SPI clock speed

### Issues/PRs references

Useful for benchmarks with #14057 
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * tests/periph_spi: Add thread runtime stats

-- File Changes --

    M tests/periph_spi/main.c (129)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200515/38281af4/attachment.htm>

More information about the notifications mailing list