- Messages
- 61
- Country
Well, I have another doozy in store: I am trying to gather some info on timing and performance, and I'm trying to use seemingly valid and well-documented SimConnect call SimConnect_RequestResponseTimes(). However, whatever I do and wherever I call it, I am getting no responses, just zeroes. Here is my code (pretty much what is in the SDK):
I rigged up my code to call it just once, at a key press, or let it be called during an interval, before and after any of the SimConnect_SetDataOnSimObject() calls - nothing, just zeroes. Does anyone know how to get this to work?
Code:
void ReportServerResponseTimes(void)
{
float fElapsedSeconds[5];
SimConnect_RequestResponseTimes(hSimConnect, 5, &fElapsedSeconds[0]);
if (bVerbose) fprintf(stderr, "total round trip time: %f\n", fElapsedSeconds[0]);
if (bVerbose) fprintf(stderr, "time from the request till the packet is sent: %f\n", fElapsedSeconds[1]);
if (bVerbose) fprintf(stderr, "time from the request till the packet is received by the server: %f\n", fElapsedSeconds[2]);
if (bVerbose) fprintf(stderr, "time from the request till the response is made by the server: %f\n", fElapsedSeconds[3]);
if (bVerbose) fprintf(stderr, "time from the server response to the client receives the packet: %f\n", fElapsedSeconds[4]);
}
I rigged up my code to call it just once, at a key press, or let it be called during an interval, before and after any of the SimConnect_SetDataOnSimObject() calls - nothing, just zeroes. Does anyone know how to get this to work?