| 748 | |
| 749 | |
| 750 | static void record_times( HANDLE const process, timing_info * const time ) |
| 751 | { |
| 752 | FILETIME creation; |
| 753 | FILETIME exit; |
| 754 | FILETIME kernel; |
| 755 | FILETIME user; |
| 756 | if ( GetProcessTimes( process, &creation, &exit, &kernel, &user ) ) |
| 757 | { |
| 758 | time->system = filetime_to_seconds( kernel ); |
| 759 | time->user = filetime_to_seconds( user ); |
| 760 | timestamp_from_filetime( &time->start, &creation ); |
| 761 | timestamp_from_filetime( &time->end, &exit ); |
| 762 | } |
| 763 | } |
| 764 | |
| 765 | |
| 766 | static char ioBuffer[ IO_BUFFER_SIZE + 1 ]; |
no test coverage detected