Srijani Dutta
/
Timer_HelloWorld1
A
Fork of Timer_HelloWorld by
Diff: main.cpp
- Revision:
- 0:27e1de20d3cb
- Child:
- 2:a8ab43d7fa70
diff -r 000000000000 -r 27e1de20d3cb main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Feb 13 17:28:57 2013 +0000 @@ -0,0 +1,10 @@ +#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()); +}