1
0
Fork 0
flightgear/src/Time/test_event.c
Tim Moore c90db01dc8 source tree reorganization prior to flightgear 0.7
SimGear and TerraGear appear to have been split off at this time.
2009-09-14 14:26:20 +02:00

38 lines
585 B
C

#include <stdio.h>
#include "event.h"
void a() {
printf("Function a()\n");
system("date");
}
void b() {
printf("Function b()\n");
system("date");
}
void c() {
printf("Function c()\n");
fgEventPrintStats();
}
void d() {
}
main() {
fgEventInit();
fgEventRegister("Function b()", b, FG_EVENT_READY, 1000);
fgEventRegister("Function a()", a, FG_EVENT_READY, 2500);
fgEventRegister("Function d()", d, FG_EVENT_READY, 500);
fgEventRegister("Function c()", c, FG_EVENT_READY, 10000);
while ( 1 ) {
fgEventProcess();
}
}