Search Code
About GetTickCount

Published 25 Jan 2010.

Last change message: N/A

Import this program

GetTickCount

Published 25 Jan 2010, by   user Michael Wei   tag No tags
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "GetTickCount/GetTickCount.h"
00003 
00004 int main() {
00005     printf("GetTickCount() Demo App\r\n");
00006     printf("Timer resolution is 10ms.\r\n");
00007     printf("Sample will show the system timer every second.");
00008     
00009     GetTickCount_Start();
00010     while(1) {
00011         
00012                 printf("Ticks: %d\r\n", GetTickCount());
00013                 wait(1);
00014     }
00015 }