#include "Timer.h" #include #include int foo_counter = 0; void foo (Millisecond) { CcuTimeStamp t; fprintf (stderr, "tic %d\n", (unsigned long) (t)); foo_counter++; } void baz (Millisecond) { CcuTimeStamp t; fprintf (stderr, "tac %d\n", (unsigned long) (t)); } void bar (Millisecond) { printf ("%d\n", foo_counter); // exit (0); } CcuList l; main () { #if 1 CcuTimer t (1000, foo, 5); CcuTimer s (1000, baz); CcuTimer tt (10000, bar); #else CcuTimer t (20, foo); CcuTimer tt (10000, bar); #endif for (;;) ; }