I got the structure of the code but did not get every details right

Revision:
3:d5c746840139
Parent:
2:fcf30b3e1c14
Child:
4:72b8fb7423dd
--- a/main.cpp	Thu Feb 22 17:05:45 2018 +0000
+++ b/main.cpp	Wed Jan 30 21:54:03 2019 +0000
@@ -25,7 +25,7 @@
         rled = 1.0f - abs(x);
         gled = 1.0f - abs(y);
         bled = 1.0f - abs(z);
-        Thread::wait(300);
+        wait(0.3);
         pc.printf("X: %1.2f, Y: %1.2f, Z: %1.2f\n", x, y, z);
     }
 }