Demo program to use the internal timer for long times

Dependencies:   mbed

Fork of Timer_HelloWorld by mbed official

main.cpp

Committer:
mbed_official
Date:
2013-02-13
Revision:
0:27e1de20d3cb
Child:
1:455a5cf52a84

File content as of revision 0:27e1de20d3cb:

#include "mbed.h"
 
Timer t;
 
int main() {
    t.start();
    printf("Hello World!\n");
    t.stop();
    printf("The time taken was %f seconds\n", t.read());
}