timer example for the NXP freedom platform

Dependencies:   mbed

Fork of frdm_timer by Freescale

main.cpp

Committer:
chris
Date:
2012-10-12
Revision:
1:15681077dea3
Parent:
0:5e8c7a36cb58
Child:
8:9ebf83f8337e

File content as of revision 1:15681077dea3:

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