Hello group;
I have an old laptop that wasn't doing anything, so I loaded Linux on it and wrote a program to send my e-mail in morse code (so I can "listen" to my e-mail while I do other things).
I'm using "usleep" to time the length of the morse code bits.
The problem is that usleep does not appear to work uniformly i.e. I have a formula to change the speed of the morse code - but although the speed should change progressively, it does not.
After reading the manpage I'm guessing that the system is truncating or rounding-off the time (note that the CPU/IO/memory usage is close to nil).
Do [you] think if I rewrite the program to use "nanosleep" that I will see better performance?
regards,
tonyp
(as usual, any reply I get that at least gives me something worth investigating will get 5 points. Replies that lead to the solution will get 10)
REMEMBER: Once you eliminate your #1 problem, #2 gets a promotion.