Revision:
1:83025977f52e
Parent:
0:b4a900df72eb
--- a/main.cpp	Tue May 19 18:08:29 2020 +0000
+++ b/main.cpp	Tue May 19 20:06:54 2020 +0000
@@ -1,14 +1,12 @@
 #include "mbed.h"
 Timer temps;
-Serial pc(SERIAL_TX, SERIAL_RX,9600);
+Serial pc(SERIAL_TX, SERIAL_RX,9600);  // Vitesse 9600 bauds
 int main()
 {
-    unsigned int t0,t1;
     temps.start();
-    t0=temps.read_us();
-    pc.printf("Hello World\r\n"); 
-    t1=temps.read_us();
-    pc.printf("duree mesuree : %d\r\n",t1-t0);
+    pc.printf("Hello world\r\n");
+    temps.stop();
+    pc.printf("duree mesuree : %d\r\n",temps.read_us());
     while(1);
 }