[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Generating events



Hello there!
I am at the moment writing  an application for ns, I have now come as far
as to looking at event generation. I need to generate events randomly, the
randomness I reckon I can sort out by using the random number generator. 
But how can I say that an event is to happend(e.g. sending a packet) in 10
or n seconds. In other words, how do I do the scheduling of events?
Can anybody help me?

Tor Hval