timer example for the NXP freedom platform
Dependencies: mbed
Fork of frdm_timer by
main.cpp@8:9ebf83f8337e, 2014-07-16 (annotated)
- Committer:
- sam_grove
- Date:
- Wed Jul 16 09:53:14 2014 +0000
- Revision:
- 8:9ebf83f8337e
- Parent:
- 1:15681077dea3
update formatting and mbed library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
chris | 0:5e8c7a36cb58 | 1 | #include "mbed.h" |
sam_grove | 8:9ebf83f8337e | 2 | |
chris | 1:15681077dea3 | 3 | Timer t; |
sam_grove | 8:9ebf83f8337e | 4 | |
sam_grove | 8:9ebf83f8337e | 5 | int main() |
sam_grove | 8:9ebf83f8337e | 6 | { |
chris | 1:15681077dea3 | 7 | t.start(); |
chris | 1:15681077dea3 | 8 | printf("Hello World!\n"); |
chris | 1:15681077dea3 | 9 | t.stop(); |
chris | 1:15681077dea3 | 10 | printf("The time taken was %f seconds\n", t.read()); |
sam_grove | 8:9ebf83f8337e | 11 | } |