You might be surprised, Carl. I was. Notice the highlighted difference in the thousandths times.
My quick-and-dirty test code uses SQL to fill the queue. Then I start a timer when I start reading through the queue (and outputting to debug) .
I’ll see if I can find time to extract the code into something standalone later today, if you’re interested.
Carl, have you tried your code that checks for DBWIN_BUFFER_READY in the CW debugger? Because debuggers work differently I suspect you’ll find that you don’t get OutputDebugString() messages even when you’re debugging. Which may or not be important, but I thought it worth mentioning.