test/testtimer.c
branchSDL-1.3
changeset 1659 14717b52abc0
parent 1615 d5298e8f22b3
child 1662 782fd950bd46
child 1895 c121d94672cb
equal deleted inserted replaced
1658:e49147870aac 1659:14717b52abc0
    10 
    10 
    11 #define DEFAULT_RESOLUTION	1
    11 #define DEFAULT_RESOLUTION	1
    12 
    12 
    13 static int ticks = 0;
    13 static int ticks = 0;
    14 
    14 
    15 static Uint32 ticktock(Uint32 interval)
    15 static Uint32 SDLCALL ticktock(Uint32 interval)
    16 {
    16 {
    17 	++ticks;
    17 	++ticks;
    18 	return(interval);
    18 	return(interval);
    19 }
    19 }
    20 
    20 
    21 static Uint32 callback(Uint32 interval, void *param)
    21 static Uint32 SDLCALL callback(Uint32 interval, void *param)
    22 {
    22 {
    23   printf("Timer %d : param = %d\n", interval, (int)(uintptr_t)param);
    23   printf("Timer %d : param = %d\n", interval, (int)(uintptr_t)param);
    24   return interval;
    24   return interval;
    25 }
    25 }
    26 
    26