Demo program to use the internal timer for long times
Fork of Timer_HelloWorld by
Diff: main.cpp
- Revision:
- 0:27e1de20d3cb
- Child:
- 1:455a5cf52a84
--- /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()); +}