godai 田中
/
Timer_godai
servo
Fork of Timer_HelloWorld_godai by
main.cpp@0:27e1de20d3cb, 2013-02-13 (annotated)
- Committer:
- mbed_official
- Date:
- Wed Feb 13 17:28:57 2013 +0000
- Revision:
- 0:27e1de20d3cb
- Child:
- 1:64fc7f117c1c
- Child:
- 3:9152128dba25
Timer Hello World
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 0:27e1de20d3cb | 1 | #include "mbed.h" |
mbed_official | 0:27e1de20d3cb | 2 | |
mbed_official | 0:27e1de20d3cb | 3 | Timer t; |
mbed_official | 0:27e1de20d3cb | 4 | |
mbed_official | 0:27e1de20d3cb | 5 | int main() { |
mbed_official | 0:27e1de20d3cb | 6 | t.start(); |
mbed_official | 0:27e1de20d3cb | 7 | printf("Hello World!\n"); |
mbed_official | 0:27e1de20d3cb | 8 | t.stop(); |
mbed_official | 0:27e1de20d3cb | 9 | printf("The time taken was %f seconds\n", t.read()); |
mbed_official | 0:27e1de20d3cb | 10 | } |