![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Test mutex lock and unlock speed
Revision 1:031a47f61977, committed 2016-05-04
- Comitter:
- c1728p9
- Date:
- Wed May 04 23:26:08 2016 +0000
- Parent:
- 0:9787830cc5aa
- Commit message:
- Fix what is printed
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed May 04 23:20:25 2016 +0000 +++ b/main.cpp Wed May 04 23:26:08 2016 +0000 @@ -32,7 +32,7 @@ uint32_t start = t.read_us(); Thread::wait(1000); uint32_t stop = t.read_us(); - pc.printf("Test delay of 1us: %luus\r\n", stop - start); + pc.printf("Test delay of 1s: %luus\r\n", stop - start); // Test consecutive call to timer @@ -118,7 +118,7 @@ min_us = diff; } } - printf("unlock min, max: %luus, %luus\r\n", min_us, max_us); + printf("Lock already locked mutex min, max: %luus, %luus\r\n", min_us, max_us); while (true) { Thread::wait(1000);