timer

Dependencies:   mbed

Fork of Timer_HelloWorld by mbed official

main.cpp

Committer:
mbedAustin
Date:
2014-09-20
Revision:
1:d76f5570bd21
Parent:
0:27e1de20d3cb

File content as of revision 1:d76f5570bd21:

#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());
}