![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Timer
Dependencies: mbed
main.cpp
- Committer:
- Mattinico
- Date:
- 2016-11-06
- Revision:
- 0:634e87e3d30e
File content as of revision 0:634e87e3d30e:
/* Program Example 3: A simple Timer example, from mbed website. Activate Tera Term terminal to test. */ #include "mbed.h" Timer t; // define Timer with name â€oet†Serial pc(USBTX, USBRX); int main() { t.start(); //start the timer pc.printf("Forza NAPOLI!\n\r"); t.stop(); //stop the timer pc.printf("The time taken was %f seconds\n\r", t.read()); //print to pc }