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

benpicco notifications at github.com
Tue May 19 12:22:38 CEST 2020


@benpicco commented on this pull request.



>      printf(" 1 - write %i times %i byte:", BENCH_REDOS, 1);
-    printf("\t\t\t%i\n", (int)(stop - start));
+    printf("\t\t\t%"PRIu32"\t%"PRIu32"\n", (stop - start),
+           xtimer_diff(sched_stop, sched_start).ticks32);

That would also explain why the numbers on ATmega are ¼ of what is expected - there xtimer is sourced from a 250kHz clock.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14087#discussion_r427193489
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200519/4a47b735/attachment.htm>


More information about the notifications mailing list