I am writing an application on Windows XP which send/receive data from an embedded device on a USB port.
When I receive data from the embedded device, it must arrive in set time limits. I realize that windows is not an RTOS, but still there must be some mechanism to measure timings e.g. after after I have sent a packet to my embedded device, some mechanism to count how many milliseconds have passed since I sent the packet.
Could anybody please give me directions on how can I achieve this? Basically I am interested in knowing what constructs/facilities Windows provides to measure "timer" type features.