| 467 | #include <windows.h> |
| 468 | |
| 469 | static mi_msecs_t filetime_msecs(const FILETIME* ftime) { |
| 470 | ULARGE_INTEGER i; |
| 471 | i.LowPart = ftime->dwLowDateTime; |
| 472 | i.HighPart = ftime->dwHighDateTime; |
| 473 | mi_msecs_t msecs = (i.QuadPart / 10000); // FILETIME is in 100 nano seconds |
| 474 | return msecs; |
| 475 | } |
| 476 | |
| 477 | typedef struct _PROCESS_MEMORY_COUNTERS { |
| 478 | DWORD cb; |
no outgoing calls
no test coverage detected