timer example for the NXP freedom platform
Dependencies: mbed
Fork of frdm_timer by
main.cpp@5:0001916b280e, 2014-02-20 (annotated)
- Committer:
- Kojto
- Date:
- Thu Feb 20 18:40:48 2014 +0000
- Revision:
- 5:0001916b280e
- Parent:
- 1:15681077dea3
- Child:
- 8:9ebf83f8337e
frdm_timer - initial version
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 | } |