proyectotecnicas
/
frdm_timer
main.cpp@0:c56b9f122955, 2015-11-30 (annotated)
- Committer:
- Diegolorca
- Date:
- Mon Nov 30 18:28:15 2015 +0000
- Revision:
- 0:c56b9f122955
- Child:
- 1:9f81ea7031d7
q
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Diegolorca | 0:c56b9f122955 | 1 | #include "mbed.h" |
Diegolorca | 0:c56b9f122955 | 2 | |
Diegolorca | 0:c56b9f122955 | 3 | Timer t; |
Diegolorca | 0:c56b9f122955 | 4 | |
Diegolorca | 0:c56b9f122955 | 5 | int main() |
Diegolorca | 0:c56b9f122955 | 6 | { |
Diegolorca | 0:c56b9f122955 | 7 | t.start(); |
Diegolorca | 0:c56b9f122955 | 8 | printf("Hello World!\n"); |
Diegolorca | 0:c56b9f122955 | 9 | t.stop(); |
Diegolorca | 0:c56b9f122955 | 10 | printf("The time taken was %f seconds\n", t.read()); |
Diegolorca | 0:c56b9f122955 | 11 | } |