Timer program example for Hexiwear

Fork of Hexi_Timer_Example by Hexiwear

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 Serial pc(USBTX, USBRX);
00005 
00006 int main()
00007 {
00008     t.start();
00009     pc.printf("Hello World!\r\n");
00010     t.stop();
00011     pc.printf("The time taken to boot and display this message was %f seconds\r\n\n", t.read());
00012 }