timer example for the NXP freedom platform
Dependencies: mbed
Fork of frdm_timer by
Diff: main.cpp
- Revision:
- 8:9ebf83f8337e
- Parent:
- 1:15681077dea3
--- a/main.cpp Wed Apr 09 04:42:12 2014 +0000 +++ b/main.cpp Wed Jul 16 09:53:14 2014 +0000 @@ -1,10 +1,11 @@ #include "mbed.h" - + Timer t; - -int main() { + +int main() +{ t.start(); printf("Hello World!\n"); t.stop(); printf("The time taken was %f seconds\n", t.read()); -} \ No newline at end of file +}