timer example for the NXP freedom platform
Dependencies: mbed
Fork of frdm_timer by
Revision 8:9ebf83f8337e, committed 2014-07-16
- Comitter:
- sam_grove
- Date:
- Wed Jul 16 09:53:14 2014 +0000
- Parent:
- 7:3eaa714157d6
- Commit message:
- update formatting and mbed library
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 3eaa714157d6 -r 9ebf83f8337e main.cpp --- 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 +}
diff -r 3eaa714157d6 -r 9ebf83f8337e mbed.bld --- a/mbed.bld Wed Apr 09 04:42:12 2014 +0000 +++ b/mbed.bld Wed Jul 16 09:53:14 2014 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/6473597d706e \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/04dd9b1680ae \ No newline at end of file