Push and hold button to start timer. Release button to print time that the button was held for.
Fork of Timer_HelloWorld by
main.cpp
- Committer:
- mbed_official
- Date:
- 2013-02-13
- Revision:
- 0:27e1de20d3cb
- Child:
- 1:272adee7c4ac
File content as of revision 0:27e1de20d3cb:
#include "mbed.h" Timer t; int main() { t.start(); printf("Hello World!\n"); t.stop(); printf("The time taken was %f seconds\n", t.read()); }