timer example for the NXP freedom platform
Dependencies: mbed
Fork of frdm_timer by
main.cpp@1:15681077dea3, 2012-10-12 (annotated)
- Committer:
- chris
- Date:
- Fri Oct 12 13:08:38 2012 +0000
- Revision:
- 1:15681077dea3
- Parent:
- 0:5e8c7a36cb58
- Child:
- 8:9ebf83f8337e
First commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
chris | 0:5e8c7a36cb58 | 1 | #include "mbed.h" |
chris | 1:15681077dea3 | 2 | |
chris | 1:15681077dea3 | 3 | Timer t; |
chris | 1:15681077dea3 | 4 | |
chris | 1:15681077dea3 | 5 | int main() { |
chris | 1:15681077dea3 | 6 | t.start(); |
chris | 1:15681077dea3 | 7 | printf("Hello World!\n"); |
chris | 1:15681077dea3 | 8 | t.stop(); |
chris | 1:15681077dea3 | 9 | printf("The time taken was %f seconds\n", t.read()); |
chris | 0:5e8c7a36cb58 | 10 | } |