main.cpp

Committer:
gr91
Date:
2020-05-19
Revision:
0:b4a900df72eb
Child:
1:83025977f52e

File content as of revision 0:b4a900df72eb:

#include "mbed.h"
Timer temps;
Serial pc(SERIAL_TX, SERIAL_RX,9600);
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);
    while(1);
}