G
George
I have created a program that sends msgs at certain rate. What is the
best way to do this so that I get a consistent rate all the time?
For example I want to send 5000 msgs per second, and 1000 msgs per
second.
I have used "usleep" and most of the time I get way less than what I
expect mainly do to system interrupt.
How do I get time to print like the following 3:12:30.83884838?
Thanks
George
best way to do this so that I get a consistent rate all the time?
For example I want to send 5000 msgs per second, and 1000 msgs per
second.
I have used "usleep" and most of the time I get way less than what I
expect mainly do to system interrupt.
How do I get time to print like the following 3:12:30.83884838?
Thanks
George