| 1018 | |
| 1019 | |
| 1020 | static double creation_time( HANDLE const process ) |
| 1021 | { |
| 1022 | FILETIME creation; |
| 1023 | FILETIME exit; |
| 1024 | FILETIME kernel; |
| 1025 | FILETIME user; |
| 1026 | return GetProcessTimes( process, &creation, &exit, &kernel, &user ) |
| 1027 | ? filetime_to_seconds( creation ) |
| 1028 | : 0.0; |
| 1029 | } |
| 1030 | |
| 1031 | |
| 1032 | /* |
no test coverage detected