Simple discrete-event simulation (DES) implementation in C.