Example to demonstrate usage of `mbed_stats_cpu_get()` API usage

Revision:
18:86a8fc778472
Parent:
15:86c93f5d67c4
--- a/main.cpp	Thu Jan 03 15:45:33 2019 +0000
+++ b/main.cpp	Thu Jan 03 20:00:32 2019 +0000
@@ -35,7 +35,7 @@
 
     while(i--) {
         led1 = !led1;
-        wait_us(wait_time);
+        wait_ms(wait_time);
     }
 }
 
@@ -65,7 +65,7 @@
 
     // Steadily increase the system load
     for (int count = 1; ; count++) {
-        Thread::wait(LOOP_TIME);
+        ThisThread::sleep_for(LOOP_TIME);
         if (wait_time <= 0) {
             break;
         }