[Quickfix-developers] ftime in Windows problem
Brought to you by:
orenmnero
|
From: Alexey Z. <ale...@gm...> - 2007-08-16 14:06:44
|
Hello, We found out that ftime function in Windows returns milliseconds in fractions of context switch. In Linux it looks fine. Here is an example: I call ftime in a loop and after that print time and milliseconds when it's different from the previous value: Linux: Wed Aug 15 23:14:57 2007 521 Wed Aug 15 23:14:57 2007 522 Wed Aug 15 23:14:57 2007 523 Wed Aug 15 23:14:57 2007 524 Wed Aug 15 23:14:57 2007 525 Press Enter to continue! Windows: Thu Aug 16 09:26:56 2007 503 Thu Aug 16 09:26:56 2007 518 Thu Aug 16 09:26:56 2007 534 Thu Aug 16 09:26:56 2007 549 Thu Aug 16 09:26:56 2007 565 Press any key to continue . . . Does anyone know if it's possible to overcome that somehow in Windows (registry key)? Does anyone have more precisely QuickFix time code for Windows (QueryPerformanceCounter)? Thank you. -- Regards, Alexey Zubko |