Timer Hello World

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002  
00003 Timer t;
00004  
00005 int main() {
00006     t.start();
00007     printf("Hello World!\n");
00008     t.stop();
00009     printf("The time taken was %f seconds\n", t.read());
00010 }