Query Run-Time Statistics
You can use the GetEvent function to query the driver for run-time statistics. The GetEvent function takes four arguments:
conn->GetEvent(eventType,eventData,&eventDataLen,tableIndex);
Call the GetEvent method after the driver initiates and before it terminates. Some events require the job to reach a certain point before their data becomes available. If the job has not yet reached this point, the GetEvent method returns TD_Unavailable.