Michael Wei / Mbed 2 deprecated GetTickCount

Dependencies:   mbed

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 }