timer example for the NXP freedom platform

Dependencies:   mbed

Fork of frdm_timer by Freescale

main.cpp

Committer:
sam_grove
Date:
2014-02-21
Revision:
6:7713a7416ca4
Parent:
1:15681077dea3
Child:
8:9ebf83f8337e

File content as of revision 6:7713a7416ca4:

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