I'd like to be able to set microsecond per-character delays.
I hacked commlib.c to invoke a "micro-sleep" function that I wrote, but without success. I figure that at high baud rates the millisecond resolution of the timers is much too long for per-character, so I interpret delays greater than example 5 milliseconds as microseconds. But my delay seems to spin without returning. Currently it is sending a WM_TIMER message to the invoking thread after the desired microseconds delay (based on the performance counter,) but the main thread is never revived.
I could easily post my changes if someone is willing to review and suggest fixes to make it actually work. Microsoft Vista/Visual Studio.
I'd like to be able to set microsecond per-character delays.
I hacked commlib.c to invoke a "micro-sleep" function that I wrote, but without success. I figure that at high baud rates the millisecond resolution of the timers is much too long for per-character, so I interpret delays greater than example 5 milliseconds as microseconds. But my delay seems to spin without returning. Currently it is sending a WM_TIMER message to the invoking thread after the desired microseconds delay (based on the performance counter,) but the main thread is never revived.
I could easily post my changes if someone is willing to review and suggest fixes to make it actually work. Microsoft Vista/Visual Studio.
Seems simple and very useful.
Thanks for a great program! Donald.