Test mutex lock and unlock speed

Dependencies:   mbed-rtos mbed

Files at this revision

API Documentation at this revision

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
diff -r 9787830cc5aa -r 031a47f61977 main.cpp
--- 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);