![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Test mutex lock and unlock speed
Diff: main.cpp
- Revision:
- 1:031a47f61977
- Parent:
- 0:9787830cc5aa
--- 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);