timer example for the NXP freedom platform
Dependencies: mbed
Fork of frdm_timer by
main.cpp@2:35ee70cc14e8, 2012-10-23 (annotated)
- Committer:
- emilmont
- Date:
- Tue Oct 23 09:41:03 2012 +0000
- Revision:
- 2:35ee70cc14e8
- Parent:
- 1:15681077dea3
- Child:
- 8:9ebf83f8337e
Update mbed library
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 | } |