timer example for the NXP freedom platform

Dependencies:   mbed

Fork of frdm_timer by Freescale

main.cpp

Committer:
sam_grove
Date:
2014-07-16
Revision:
8:9ebf83f8337e
Parent:
1:15681077dea3

File content as of revision 8:9ebf83f8337e:

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