Dependencies:   mbed

Committer:
no2chem
Date:
Mon Jan 25 05:56:58 2010 +0000
Revision:
0:c162b0b96146

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
no2chem 0:c162b0b96146 1 #include "mbed.h"
no2chem 0:c162b0b96146 2 #include "GetTickCount/GetTickCount.h"
no2chem 0:c162b0b96146 3
no2chem 0:c162b0b96146 4 int main() {
no2chem 0:c162b0b96146 5 printf("GetTickCount() Demo App\r\n");
no2chem 0:c162b0b96146 6 printf("Timer resolution is 10ms.\r\n");
no2chem 0:c162b0b96146 7 printf("Sample will show the system timer every second.");
no2chem 0:c162b0b96146 8
no2chem 0:c162b0b96146 9 GetTickCount_Start();
no2chem 0:c162b0b96146 10 while(1) {
no2chem 0:c162b0b96146 11
no2chem 0:c162b0b96146 12 printf("Ticks: %d\r\n", GetTickCount());
no2chem 0:c162b0b96146 13 wait(1);
no2chem 0:c162b0b96146 14 }
no2chem 0:c162b0b96146 15 }