Dependencies:   mbed

main.cpp

Committer:
no2chem
Date:
2010-01-25
Revision:
0:c162b0b96146

File content as of revision 0:c162b0b96146:

#include "mbed.h"
#include "GetTickCount/GetTickCount.h"

int main() {
    printf("GetTickCount() Demo App\r\n");
    printf("Timer resolution is 10ms.\r\n");
    printf("Sample will show the system timer every second.");
    
    GetTickCount_Start();
    while(1) {
        
                printf("Ticks: %d\r\n", GetTickCount());
                wait(1);
    }
}