timer example for the NXP freedom platform

Dependencies:   mbed

Fork of frdm_timer by Freescale

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 
00003 Timer t;
00004 
00005 int main()
00006 {
00007     t.start();
00008     printf("Hello World!\n");
00009     t.stop();
00010     printf("The time taken was %f seconds\n", t.read());
00011 }